Skip to content

Commit 42f7380

Browse files
committed
patch serverless on nextjs??
1 parent 8e6d77e commit 42f7380

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/node/src/integrations/http

packages/node/src/integrations/http/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export const httpIntegration = defineIntegration((options: HttpOptions = {}) =>
157157
// On Vercel, we want to patch the response to flush on Vercel Lambda freeze
158158
// This is usually done in the OTEL Http Instrumentation, but if that is not added,
159159
// we do it here instead
160-
patchResponseForServerless: !instrumentSpans && !!process.env.VERCEL,
160+
patchResponseForServerless: !instrumentSpans && !!process.env.VERCEL && !options.disableIncomingRequestSpans,
161161
});
162162

163163
// This is the "regular" OTEL instrumentation that emits spans

0 commit comments

Comments
 (0)