Skip to content

Commit 520b450

Browse files
committed
stop using event processor in datafetchers wrapper
1 parent 3f6835f commit 520b450

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

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

Lines changed: 0 additions & 13 deletions
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';
@@ -124,18 +123,6 @@ export function callTracedServerSideDataFetcher<F extends (...args: any[]) => Pr
124123
if (currentScope) {
125124
currentScope.setSpan(dataFetcherSpan);
126125
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-
);
139126
}
140127

141128
try {

0 commit comments

Comments
 (0)