Skip to content

Commit fa13155

Browse files
committed
Revert "try revert??"
This reverts commit cd98b89.
1 parent b4fe4bc commit fa13155

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

packages/node/src/integrations/contextlines.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,13 @@ export class ContextLines implements Integration {
5555
/**
5656
* @inheritDoc
5757
*/
58-
public setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void {
59-
addGlobalEventProcessor(event => {
60-
const self = getCurrentHub().getIntegration(ContextLines);
61-
if (!self) {
62-
return event;
63-
}
64-
return this.addSourceContext(event);
65-
});
58+
public setupOnce(_addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void {
59+
// noop
60+
}
61+
62+
/** @inheritDoc */
63+
public processEvent(event: Event): Promise<Event> {
64+
return this.addSourceContext(event);
6665
}
6766

6867
/** Processes an event and adds context lines */

0 commit comments

Comments
 (0)