File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/nextjs/src/server Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- import { addEventProcessor , applySdkMetadata , getClient , getGlobalScope } from '@sentry/core' ;
1
+ import { applySdkMetadata , getClient , getGlobalScope } from '@sentry/core' ;
2
2
import { getDefaultIntegrations , init as nodeInit } from '@sentry/node' ;
3
3
import type { NodeOptions } from '@sentry/node' ;
4
4
import { GLOBAL_OBJ , logger } from '@sentry/utils' ;
@@ -143,7 +143,7 @@ export function init(options: NodeOptions): void {
143
143
}
144
144
} ) ;
145
145
146
- addEventProcessor (
146
+ getGlobalScope ( ) . addEventProcessor (
147
147
Object . assign (
148
148
( event => {
149
149
if ( event . type === 'transaction' ) {
@@ -207,7 +207,7 @@ export function init(options: NodeOptions): void {
207
207
) ;
208
208
209
209
if ( process . env . NODE_ENV === 'development' ) {
210
- addEventProcessor ( devErrorSymbolicationEventProcessor ) ;
210
+ getGlobalScope ( ) . addEventProcessor ( devErrorSymbolicationEventProcessor ) ;
211
211
}
212
212
213
213
DEBUG_BUILD && logger . log ( 'SDK successfully initialized' ) ;
You can’t perform that action at this time.
0 commit comments