Skip to content

Commit b0d3b94

Browse files
committed
add request to scope metadata in data fetchers wrapper
1 parent 8c13337 commit b0d3b94

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
@@ -123,6 +123,7 @@ export function callTracedServerSideDataFetcher<F extends (...args: any[]) => Pr
123123
const currentScope = getCurrentHub().getScope();
124124
if (currentScope) {
125125
currentScope.setSpan(dataFetcherSpan);
126+
currentScope.setSDKProcessingMetadata({ request: req });
126127
currentScope.addEventProcessor(event =>
127128
event.type !== 'transaction'
128129
? addRequestDataToEvent(event, req, {

0 commit comments

Comments
 (0)