Skip to content

Commit 3da003c

Browse files
committed
stop using event processor in datafetchers wrapper
1 parent 3de5b8b commit 3da003c

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

packages/nextjs/src/config/wrappers/wrapperUtils.ts

-13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { captureException, getCurrentHub, startTransaction } from '@sentry/core';
2-
import { addRequestDataToEvent } from '@sentry/node';
32
import { getActiveTransaction } from '@sentry/tracing';
43
import { Transaction } from '@sentry/types';
54
import { 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 {

0 commit comments

Comments
 (0)