mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-15 03:47:19 +00:00
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:
parent
66de7bef89
commit
be3be32bf1
1 changed files with 2 additions and 2 deletions
|
|
@ -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>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue