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 11import { captureException , getCurrentHub , startTransaction } from '@sentry/core' ;
2- import { addRequestDataToEvent } from '@sentry/node' ;
32import { getActiveTransaction } from '@sentry/tracing' ;
43import { Transaction } from '@sentry/types' ;
54import { baggageHeaderToDynamicSamplingContext , extractTraceparentData , fill } from '@sentry/utils' ;
@@ -122,18 +121,6 @@ export function callTracedServerSideDataFetcher<F extends (...args: any[]) => Pr
122121 if ( currentScope ) {
123122 currentScope . setSpan ( dataFetcherSpan ) ;
124123 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- ) ;
137124 }
138125
139126 try {
You can’t perform that action at this time.
0 commit comments