This repository was archived by the owner on Jan 23, 2026. It is now read-only.
Commit df782c7
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 fix1 parent 474222d commit df782c7
4 files changed
Lines changed: 101 additions & 146 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
| |||
0 commit comments