We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 475c295 commit 0e23d4dCopy full SHA for 0e23d4d
packages/node-experimental/src/integrations/http.ts
@@ -98,6 +98,16 @@ export class Http implements Integration {
98
return isSentryHost(host);
99
},
100
101
+ ignoreIncomingRequestHook: request => {
102
+ const method = request.method?.toUpperCase();
103
+ // We do not capture OPTIONS/HEAD requests as transactions
104
+ if (method === 'OPTIONS' || method === 'HEAD') {
105
+ return true;
106
+ }
107
+
108
+ return false;
109
+ },
110
111
requireParentforOutgoingSpans: true,
112
requireParentforIncomingSpans: false,
113
requestHook: (span, req) => {
0 commit comments