@@ -2,7 +2,6 @@ import type { Client, ClientOptions, Event, EventHint, StackFrame, StackParser }
2
2
import { dateTimestampInSeconds , GLOBAL_OBJ , normalize , resolvedSyncPromise , truncate , uuid4 } from '@sentry/utils' ;
3
3
4
4
import { DEFAULT_ENVIRONMENT } from '../constants' ;
5
- import { notifyEventProcessors } from '../eventProcessors' ;
6
5
import { Scope } from '../scope' ;
7
6
8
7
/**
@@ -73,28 +72,27 @@ export function prepareEvent(
73
72
}
74
73
75
74
// In case we have a hub we reassign it.
76
- result = finalScope . applyToEvent ( prepared , hint ) ;
75
+ result = finalScope . applyToEvent (
76
+ prepared ,
77
+ hint ,
78
+ client && client . getEventProcessors ? client . getEventProcessors ( ) : [ ] ,
79
+ ) ;
77
80
}
78
81
79
- return result
80
- . then ( evt => {
81
- // Process client-scoped event processors
82
- return client && client . getEventProcessors ? notifyEventProcessors ( client . getEventProcessors ( ) , evt , hint ) : evt ;
83
- } )
84
- . then ( evt => {
85
- if ( evt ) {
86
- // We apply the debug_meta field only after all event processors have ran, so that if any event processors modified
87
- // file names (e.g.the RewriteFrames integration) the filename -> debug ID relationship isn't destroyed.
88
- // This should not cause any PII issues, since we're only moving data that is already on the event and not adding
89
- // any new data
90
- applyDebugMeta ( evt ) ;
91
- }
82
+ return result . then ( evt => {
83
+ if ( evt ) {
84
+ // We apply the debug_meta field only after all event processors have ran, so that if any event processors modified
85
+ // file names (e.g.the RewriteFrames integration) the filename -> debug ID relationship isn't destroyed.
86
+ // This should not cause any PII issues, since we're only moving data that is already on the event and not adding
87
+ // any new data
88
+ applyDebugMeta ( evt ) ;
89
+ }
92
90
93
- if ( typeof normalizeDepth === 'number' && normalizeDepth > 0 ) {
94
- return normalizeEvent ( evt , normalizeDepth , normalizeMaxBreadth ) ;
95
- }
96
- return evt ;
97
- } ) ;
91
+ if ( typeof normalizeDepth === 'number' && normalizeDepth > 0 ) {
92
+ return normalizeEvent ( evt , normalizeDepth , normalizeMaxBreadth ) ;
93
+ }
94
+ return evt ;
95
+ } ) ;
98
96
}
99
97
100
98
/**
0 commit comments