Skip to content

Commit

Permalink
add event listeners for each event on init
Browse files Browse the repository at this point in the history
  • Loading branch information
pkanal committed Oct 20, 2023
1 parent 1dc2e81 commit 6c2e97f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,14 @@ export class UserInteractionInstrumentation extends InstrumentationBase<unknown>
typeof config?.shouldPreventSpanCreation === 'function'
? config.shouldPreventSpanCreation
: defaultShouldPreventSpanCreation;
this.init();
}

init() {}
init() {
this._eventNames.forEach(event => {
window.addEventListener(event, () => {});
});
}

/**
* This will check if last task was timeout and will save the time to
Expand Down

0 comments on commit 6c2e97f

Please sign in to comment.