File tree Expand file tree Collapse file tree
packages/node/src/integrations/http Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,7 +157,8 @@ 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 && ! options . disableIncomingRequestSpans ,
160+ // We also patch here if incoming request spans are disabled, as that means the relevant code is not run in the OTEL instrumentation
161+ patchResponseForServerless : ! ! process . env . VERCEL && ( ! instrumentSpans || options . disableIncomingRequestSpans ) ,
161162 } ) ;
162163
163164 // This is the "regular" OTEL instrumentation that emits spans
You can’t perform that action at this time.
0 commit comments