Skip to content

Commit 068bbd8

Browse files
committed
add request and options to sdkProcessingMetadata
1 parent d56ed1c commit 068bbd8

File tree

1 file changed

+4
-0
lines changed
  • packages/serverless/src/gcpfunction

1 file changed

+4
-0
lines changed

packages/serverless/src/gcpfunction/http.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ function _wrapHttpFunction(fn: HttpFunction, wrapOptions: Partial<HttpFunctionWr
9898
// So adding of event processors every time should not lead to memory bloat.
9999
hub.configureScope(scope => {
100100
scope.addEventProcessor(event => addRequestDataToEvent(event, req, options.addRequestDataToEventOptions));
101+
scope.setSDKProcessingMetadata({
102+
request: req,
103+
requestDataOptionsFromGCPWrapper: options.addRequestDataToEventOptions,
104+
});
101105
// We put the transaction on the scope so users can attach children to it
102106
scope.setSpan(transaction);
103107
});

0 commit comments

Comments
 (0)