Skip to content

Commit fd453ba

Browse files
committed
stop adding event processor
1 parent 767110d commit fd453ba

File tree

1 file changed

+1
-8
lines changed
  • packages/serverless/src/gcpfunction

1 file changed

+1
-8
lines changed

packages/serverless/src/gcpfunction/http.ts

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
import {
2-
addRequestDataToEvent,
3-
AddRequestDataToEventOptions,
4-
captureException,
5-
flush,
6-
getCurrentHub,
7-
} from '@sentry/node';
1+
import { AddRequestDataToEventOptions, captureException, flush, getCurrentHub } from '@sentry/node';
82
import { extractTraceparentData } from '@sentry/tracing';
93
import { baggageHeaderToDynamicSamplingContext, isString, logger, stripUrlQueryAndFragment } from '@sentry/utils';
104

@@ -97,7 +91,6 @@ function _wrapHttpFunction(fn: HttpFunction, wrapOptions: Partial<HttpFunctionWr
9791
// since functions-framework creates a domain for each incoming request.
9892
// So adding of event processors every time should not lead to memory bloat.
9993
hub.configureScope(scope => {
100-
scope.addEventProcessor(event => addRequestDataToEvent(event, req, options.addRequestDataToEventOptions));
10194
scope.setSDKProcessingMetadata({
10295
request: req,
10396
requestDataOptionsFromGCPWrapper: options.addRequestDataToEventOptions,

0 commit comments

Comments
 (0)