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:
Dax
2026-04-15 01:32:32 -04:00
committed by GitHub
parent 66de7bef89
commit be3be32bf1

View File

@@ -12,8 +12,8 @@ export namespace Observability {
const headers = Flag.OTEL_EXPORTER_OTLP_HEADERS
? Flag.OTEL_EXPORTER_OTLP_HEADERS.split(",").reduce(
(acc, x) => {
const [key, value] = x.split("=")
acc[key] = value
const [key, ...value] = x.split("=")
acc[key] = value.join("=")
return acc
},
{} as Record<string, string>,