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' ;
22import { getDefaultIntegrations , init as nodeInit } from '@sentry/node' ;
33import type { NodeOptions } from '@sentry/node' ;
44import { GLOBAL_OBJ , logger } from '@sentry/utils' ;
@@ -143,7 +143,7 @@ export function init(options: NodeOptions): void {
143143 }
144144 } ) ;
145145
146- addEventProcessor (
146+ getGlobalScope ( ) . addEventProcessor (
147147 Object . assign (
148148 ( event => {
149149 if ( event . type === 'transaction' ) {
@@ -207,7 +207,7 @@ export function init(options: NodeOptions): void {
207207 ) ;
208208
209209 if ( process . env . NODE_ENV === 'development' ) {
210- addEventProcessor ( devErrorSymbolicationEventProcessor ) ;
210+ getGlobalScope ( ) . addEventProcessor ( devErrorSymbolicationEventProcessor ) ;
211211 }
212212
213213 DEBUG_BUILD && logger . log ( 'SDK successfully initialized' ) ;
You can’t perform that action at this time.
0 commit comments