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 c9627af commit 6b77c61Copy full SHA for 6b77c61
packages/node-core/src/utils/outgoingFetchRequest.ts
@@ -10,7 +10,7 @@ import {
10
} from '@sentry/core';
11
import type { UndiciRequest, UndiciResponse } from '../integrations/node-fetch/types';
12
import { mergeBaggageHeaders } from './baggage';
13
-
+import { debug } from '@sentry/core';
14
const SENTRY_TRACE_HEADER = 'sentry-trace';
15
const SENTRY_BAGGAGE_HEADER = 'baggage';
16
const W3C_TRACEPARENT_HEADER = 'traceparent';
@@ -104,7 +104,9 @@ function stringToArrayHeaders(requestHeaders: string): string[] {
104
if (key) {
105
headers.push(key, value);
106
}
107
- } catch {}
+ } catch {
108
+ debug.warn(`Failed to convert string request header to array header: ${header}`);
109
+ }
110
111
return headers;
112
0 commit comments