File tree 1 file changed +0
-13
lines changed
packages/nextjs/src/config/wrappers
1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change 1
1
import { captureException , getCurrentHub , startTransaction } from '@sentry/core' ;
2
- import { addRequestDataToEvent } from '@sentry/node' ;
3
2
import { getActiveTransaction } from '@sentry/tracing' ;
4
3
import { Transaction } from '@sentry/types' ;
5
4
import { baggageHeaderToDynamicSamplingContext , extractTraceparentData , fill } from '@sentry/utils' ;
@@ -122,18 +121,6 @@ export function callTracedServerSideDataFetcher<F extends (...args: any[]) => Pr
122
121
if ( currentScope ) {
123
122
currentScope . setSpan ( dataFetcherSpan ) ;
124
123
currentScope . setSDKProcessingMetadata ( { request : req } ) ;
125
- currentScope . addEventProcessor ( event =>
126
- event . type !== 'transaction'
127
- ? addRequestDataToEvent ( event , req , {
128
- include : {
129
- // When the `transaction` option is set to true, it tries to extract a transaction name from the request
130
- // object. We don't want this since we already have a high-quality transaction name with a parameterized
131
- // route. Setting `transaction` to `true` will clobber that transaction name.
132
- transaction : false ,
133
- } ,
134
- } )
135
- : event ,
136
- ) ;
137
124
}
138
125
139
126
try {
You can’t perform that action at this time.
0 commit comments