Skip to content

Commit 76ce3cb

Browse files
committed
use GCP options in integration if available
1 parent fd453ba commit 76ce3cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/node/src/integrations/requestdata.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,11 @@ export class RequestData implements Integration {
119119
}
120120

121121
// The Express request handler takes a similar `include` option to that which can be passed to this integration.
122-
// If passed there, we store it in `sdkProcessingMetadata`. TODO(v8): Force express people to use this
122+
// If passed there, we store it in `sdkProcessingMetadata`. TODO(v8): Force express and GCP people to use this
123123
// integration, so that all of this passing and conversion isn't necessary
124124
const addRequestDataOptions =
125125
sdkProcessingMetadata.requestDataOptionsFromExpressHandler ||
126+
sdkProcessingMetadata.requestDataOptionsFromGCPWrapper ||
126127
convertReqDataIntegrationOptsToAddReqDataOpts(this._options);
127128

128129
const processedEvent = this._addRequestData(event, req, addRequestDataOptions);

0 commit comments

Comments
 (0)