We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
withSentry
1 parent e98c8ae commit 475338aCopy full SHA for 475338a
packages/nextjs/src/utils/withSentry.ts
@@ -59,6 +59,7 @@ export const withSentry = (origHandler: NextApiHandler): WrappedNextApiHandler =
59
currentScope.addEventProcessor(event =>
60
event.type !== 'transaction' ? addRequestDataToEvent(event, req) : event,
61
);
62
+ currentScope.setSDKProcessingMetadata({ request: req });
63
64
if (hasTracingEnabled()) {
65
// If there is a trace header set, extract the data from it (parentSpanId, traceId, and sampling decision)
0 commit comments