Skip to content

Commit 53f9e08

Browse files
committed
don't use an arrow function
1 parent bdec0a0 commit 53f9e08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/web/opentelemetry-instrumentation-web-exception/src/instrumentation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class WebExceptionInstrumentation extends InstrumentationBase<GlobalError
5050

5151
init() {}
5252

53-
onError = (event: ErrorEvent | PromiseRejectionEvent) => {
53+
onError(event: ErrorEvent | PromiseRejectionEvent) {
5454
const EXCEPTION_EVENT_NAME = 'exception';
5555
const error: Error | undefined =
5656
'reason' in event ? event.reason : event.error;
@@ -97,7 +97,7 @@ export class WebExceptionInstrumentation extends InstrumentationBase<GlobalError
9797
timestamp: hrTime(),
9898
});
9999
}
100-
};
100+
}
101101

102102
override disable(): void {
103103
window.removeEventListener('error', this.onError);

0 commit comments

Comments
 (0)