Skip to content

fix(observability): handle OTEL headers with '=' in value - #22564

Merged
thdxr merged 2 commits into
devfrom
fix/otel-headers-value-with-equals
Apr 15, 2026
Merged

thdxr merged 2 commits into
devfrom
fix/otel-headers-value-with-equals

Conversation

@thdxr

@thdxr thdxr commented Apr 15, 2026

Copy link
Copy Markdown
Member

Summary

The OTEL headers parser now correctly handles header values that contain '=' characters.

Problem

Previously, splitting on '=' would truncate values containing '=', breaking auth tokens and other headers that use '=' within their values.

For example, a header like Authorization=Bearer token=abc123 would be parsed as:

  • Before: { Authorization: "Bearer token" } (truncated)
  • After: { Authorization: "Bearer token=abc123" } (correct)

Changes

  • Changed from x.split("=") to capture only first split point
  • Join remaining parts to preserve complete header value

opencode-agent Bot and others added 2 commits April 15, 2026 03:47
The OTEL headers parser now correctly handles header values that contain '=' characters.
Previously, splitting on '=' would truncate values containing '=', breaking auth tokens
and other headers that use '=' within their values.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@thdxr
thdxr merged commit be3be32 into dev Apr 15, 2026
13 checks passed
@thdxr
thdxr deleted the fix/otel-headers-value-with-equals branch April 15, 2026 05:32
cmaloney111 pushed a commit to psi-oss/gpd-app that referenced this pull request Apr 20, 2026
…22564)

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
…22564)

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
isaacfinnegan pushed a commit to isaacfinnegan/whispercode that referenced this pull request Jun 15, 2026
…22564)

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant