Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit df782c7

Browse files
authored
Fix: Preserve Authorization headers in fetch instrumentation (#208)
* Fix: Preserve Authorization headers in fetch instrumentation The OpenTelemetry fetch instrumentation was overwriting existing headers when adding trace context. This caused issues with third-party SDKs like E2B that set Authorization headers, resulting in 'authorization header is missing' errors. Changes: - Only add trace context headers if they don't already exist - Prevents overwriting critical headers like Authorization - Properly preserves all existing headers from init.headers * Create release changeset * recommended fix
1 parent 474222d commit df782c7

4 files changed

Lines changed: 101 additions & 146 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @agentuity/sdk Changelog
22

3+
## 0.0.158
4+
5+
### Patch Changes
6+
7+
- Add fix for otel headers not correctly preserving original outgoing headers on fetch
8+
39
## 0.0.157
410

511
### Patch Changes

0 commit comments

Comments
 (0)