File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
packages/node/src/integrations Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,13 @@ export class ContextLines implements Integration {
55
55
/**
56
56
* @inheritDoc
57
57
*/
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 ) ;
66
65
}
67
66
68
67
/** Processes an event and adds context lines */
You can’t perform that action at this time.
0 commit comments