From 50e19f938ebf04d9a5a41df61ee4a26f62cf09f3 Mon Sep 17 00:00:00 2001 From: isaacs Date: Wed, 6 May 2026 15:11:34 -0700 Subject: [PATCH] fix: improve http.client double-wrap message (#20705) Add a link to the docs. --- packages/core/src/integrations/http/double-wrap-warning.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/core/src/integrations/http/double-wrap-warning.ts b/packages/core/src/integrations/http/double-wrap-warning.ts index 27dea32dd9b3..bb0b00c7659c 100644 --- a/packages/core/src/integrations/http/double-wrap-warning.ts +++ b/packages/core/src/integrations/http/double-wrap-warning.ts @@ -7,7 +7,7 @@ const isOtelWrapped = (fn: Function & { __unwrap?: Function }): fn is Function & // exported for tess export const warning = - 'Double-wrapped http.client detected. Either disable spans in Sentry.httpIntegration, or disable the OpenTelemetry HTTP instrumentation.'; + 'Double-wrapped http.client detected. Either disable spans in Sentry.httpIntegration, or disable the OpenTelemetry HTTP instrumentation. See: https://docs.sentry.io/platforms/javascript/guides/express/opentelemetry/custom-setup/#custom-http-instrumentation'; let didDoubleWrapWarning = false; // no-op in non-debug builds @@ -15,7 +15,6 @@ export const doubleWrapWarning = DEBUG_BUILD ? (http: HttpModuleExport) => { if (!didDoubleWrapWarning) { if (isOtelWrapped(http.request) || isOtelWrapped(http.get)) { - // TODO: add link to documentation didDoubleWrapWarning = true; debug.warn(warning); }