File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { addExceptionMechanism, uuid4 } from './misc';
1111import { normalize } from './normalize' ;
1212import { applyScopeDataToEvent , getCombinedScopeData } from './scopeData' ;
1313import { truncate } from './string' ;
14+ import { resolvedSyncPromise } from './syncpromise' ;
1415import { dateTimestampInSeconds } from './time' ;
1516
1617/**
@@ -93,7 +94,11 @@ export function prepareEvent(
9394 ...data . eventProcessors ,
9495 ] ;
9596
96- const result = notifyEventProcessors ( eventProcessors , prepared , hint ) ;
97+ // Skip event processors for internal exceptions to prevent recursion
98+ const isInternalException = hint . data && ( hint . data as { __sentry__ : boolean } ) . __sentry__ === true ;
99+ const result = isInternalException
100+ ? resolvedSyncPromise ( prepared )
101+ : notifyEventProcessors ( eventProcessors , prepared , hint ) ;
97102
98103 return result . then ( evt => {
99104 if ( evt ) {
You can’t perform that action at this time.
0 commit comments