Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Feb 25, 2020
1 parent 4de69b2 commit 781d583
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
12 changes: 6 additions & 6 deletions docs/HOOKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -965,14 +965,14 @@ Log levels can be specified using: `debug`, `error`, `info`, `warn`. If log leve

```js
const MyComponent = () => {
const trackEvent = useTrackEvent();
const trackEvent = useTrackEvent();

trackEvent('This event will have default of level "info".');
trackEvent('This event will have default of level "info".');

trackEvent.debug('This event will be of level "debug".');
trackEvent.error('This event will be of level "error".');
trackEvent.info('This event will be of level "info".');
trackEvent.warn('This event will be of level "warn".');
trackEvent.debug('This event will be of level "debug".');
trackEvent.error('This event will be of level "error".');
trackEvent.info('This event will be of level "info".');
trackEvent.warn('This event will be of level "warn".');
};
```

Expand Down
25 changes: 11 additions & 14 deletions docs/TELEMETRY.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ When the following hooks are called, one or more event measurements will be emit

When the following conditions are met, an exception measurement will be emitted:

- An `<ErrorBox>` component is rendered
- Failed to render an activity
- Failed to render an activity status
- Failed to render an attachment
- Failed to render a notification toast
- Failed to render the typing indicator
- Activity renderer not found for a type of activity
- Toast renderer not found for a type of notification
- No typing indicator renderers were registered
- Any exceptions raised while calling `useTrackTiming`
- An `<ErrorBox>` component is rendered
- Failed to render an activity
- Failed to render an activity status
- Failed to render an attachment
- Failed to render a notification toast
- Failed to render the typing indicator
- Activity renderer not found for a type of activity
- Toast renderer not found for a type of notification
- No typing indicator renderers were registered
- Any exceptions raised while calling `useTrackTiming`

### Timings

Expand All @@ -96,10 +96,7 @@ interface TelemetryEventMeasurementEvent extends TelemetryMeasurementEvent {
type: 'event';
name: string;
level: 'debug' | 'info' | 'warn' | 'error';
data?:
number |
string |
{ [key: string]: number | string };
data?: number | string | { [key: string]: number | string };
}

interface TelemetryExceptionMeasurementEvent extends TelemetryMeasurementEvent {
Expand Down

0 comments on commit 781d583

Please sign in to comment.