From 8b7c021c7337484d4371b17b11e73ccdd4cc24bc Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Wed, 5 Feb 2025 17:04:27 +0000 Subject: [PATCH] fix(node): Set the correct fallback URL fields for outgoing https requests if they are not defined --- .../http/SentryHttpInstrumentation.ts | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/packages/node/src/integrations/http/SentryHttpInstrumentation.ts b/packages/node/src/integrations/http/SentryHttpInstrumentation.ts index 60fec28a434c..6d777a3822b2 100644 --- a/packages/node/src/integrations/http/SentryHttpInstrumentation.ts +++ b/packages/node/src/integrations/http/SentryHttpInstrumentation.ts @@ -113,7 +113,7 @@ export class SentryHttpInstrumentation extends InstrumentationBase http.ClientRequest, ) => (options: URL | http.RequestOptions | string, ...args: unknown[]) => http.ClientRequest { @@ -226,10 +226,21 @@ export class SentryHttpInstrumentation extends InstrumentationBase