Skip to content

Commit c6e581d

Browse files
committed
add request to scope metadata in data fetchers wrapper
1 parent 2b2c7a6 commit c6e581d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ export function callTracedServerSideDataFetcher<F extends (...args: any[]) => Pr
121121
const currentScope = getCurrentHub().getScope();
122122
if (currentScope) {
123123
currentScope.setSpan(dataFetcherSpan);
124+
currentScope.setSDKProcessingMetadata({ request: req });
124125
currentScope.addEventProcessor(event =>
125126
event.type !== 'transaction'
126127
? addRequestDataToEvent(event, req, {

0 commit comments

Comments
 (0)