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
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>,