fix(observability): handle OTEL headers with '=' in value (#22564)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
parent
66de7bef89
commit
be3be32bf1
@@ -12,8 +12,8 @@ export namespace Observability {
|
|||||||
const headers = Flag.OTEL_EXPORTER_OTLP_HEADERS
|
const headers = Flag.OTEL_EXPORTER_OTLP_HEADERS
|
||||||
? Flag.OTEL_EXPORTER_OTLP_HEADERS.split(",").reduce(
|
? Flag.OTEL_EXPORTER_OTLP_HEADERS.split(",").reduce(
|
||||||
(acc, x) => {
|
(acc, x) => {
|
||||||
const [key, value] = x.split("=")
|
const [key, ...value] = x.split("=")
|
||||||
acc[key] = value
|
acc[key] = value.join("=")
|
||||||
return acc
|
return acc
|
||||||
},
|
},
|
||||||
{} as Record<string, string>,
|
{} as Record<string, string>,
|
||||||
|
|||||||
Reference in New Issue
Block a user