Skip to content

Commit 8b338c5

Browse files
committed
store request in sdkProcessingMetadata
1 parent 0576852 commit 8b338c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/remix/src/utils/instrumentServer.ts

+5
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,11 @@ function wrapRequestHandler(origRequestHandler: RequestHandler, build: ServerBui
353353
return local.bind(async () => {
354354
const hub = getCurrentHub();
355355
const options = hub.getClient()?.getOptions();
356+
const scope = hub.getScope();
357+
358+
if (scope) {
359+
scope.setSDKProcessingMetadata({ request });
360+
}
356361

357362
if (!options || !hasTracingEnabled(options)) {
358363
return origRequestHandler.call(this, request, loadContext);

0 commit comments

Comments
 (0)