test(otel): assert websocket forwarded header reaches upstream

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
shivam 2026-09-11 03:36:35 +00:00 committed by yucheng
parent e4a12510f6
commit 68cc12e848

View file

@ -4966,6 +4966,7 @@ async def test_websocket_passthrough_propagates_active_trace_context(monkeypatch
propagated = get_current_span(TraceContextTextMapPropagator().extract(captured["headers"]))
assert propagated.get_span_context().trace_id == span.get_span_context().trace_id
assert captured["headers"]["authorization"] == "Bearer client"
class ClosingUpstreamWebSocket: