File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
packages/nextjs/src/config/wrappers Expand file tree Collapse file tree 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' ;
@@ -124,18 +123,6 @@ export function callTracedServerSideDataFetcher<F extends (...args: any[]) => Pr
124
123
if ( currentScope ) {
125
124
currentScope . setSpan ( dataFetcherSpan ) ;
126
125
currentScope . setSDKProcessingMetadata ( { request : req } ) ;
127
- currentScope . addEventProcessor ( event =>
128
- event . type !== 'transaction'
129
- ? addRequestDataToEvent ( event , req , {
130
- include : {
131
- // When the `transaction` option is set to true, it tries to extract a transaction name from the request
132
- // object. We don't want this since we already have a high-quality transaction name with a parameterized
133
- // route. Setting `transaction` to `true` will clobber that transaction name.
134
- transaction : false ,
135
- } ,
136
- } )
137
- : event ,
138
- ) ;
139
126
}
140
127
141
128
try {
You can’t perform that action at this time.
0 commit comments