deno
6f7bce40 - fix(ext/http): extract traceparent from Deno.serve regardless of header name case (#36840)

Commit
72 days ago
fix(ext/http): extract traceparent from Deno.serve regardless of header name case (#36840) Header names on the HTTP/1 fast path in `Deno.serve` reach the propagator carrier verbatim from the wire, so a request with `Traceparent:` (or any non-lowercase spelling) was silently ignored and the server span started a fresh trace instead of joining the caller's. HTTP/2 was unaffected because hyper already normalises header names there. The fix just lowercases the names when building the carrier array. The new spec test sends a raw HTTP/1.1 request over TCP, since `fetch` lowercases header names itself and can't reproduce this.
Author
Committer
Parents
Loading