Skip to content

Commit

Permalink
stop adding event processor
Browse files Browse the repository at this point in the history
  • Loading branch information
lobsterkatie committed Oct 19, 2022
1 parent 068bbd8 commit 4f593a5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/serverless/src/gcpfunction/http.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
addRequestDataToEvent,
AddRequestDataToEventOptions,
captureException,
flush,
getCurrentHub,
} from '@sentry/node';
import { AddRequestDataToEventOptions, captureException, flush, getCurrentHub } from '@sentry/node';
import { extractTraceparentData } from '@sentry/tracing';
import { baggageHeaderToDynamicSamplingContext, isString, logger, stripUrlQueryAndFragment } from '@sentry/utils';

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

0 comments on commit 4f593a5

Please sign in to comment.