We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdec0a0 commit 53f9e08Copy full SHA for 53f9e08
plugins/web/opentelemetry-instrumentation-web-exception/src/instrumentation.ts
@@ -50,7 +50,7 @@ export class WebExceptionInstrumentation extends InstrumentationBase<GlobalError
50
51
init() {}
52
53
- onError = (event: ErrorEvent | PromiseRejectionEvent) => {
+ onError(event: ErrorEvent | PromiseRejectionEvent) {
54
const EXCEPTION_EVENT_NAME = 'exception';
55
const error: Error | undefined =
56
'reason' in event ? event.reason : event.error;
@@ -97,7 +97,7 @@ export class WebExceptionInstrumentation extends InstrumentationBase<GlobalError
97
timestamp: hrTime(),
98
});
99
}
100
- };
+ }
101
102
override disable(): void {
103
window.removeEventListener('error', this.onError);
0 commit comments