Expand description
W3C Trace Context propagation for distributed tracing. W3C Trace Context propagation for distributed tracing.
The GitHub Copilot CLI propagates W3C Trace Context headers (traceparent
and tracestate) so SDK consumers can correlate spans created by the
CLI with their own observability pipelines.
Two injection paths are supported:
- Per-turn override via
MessageOptions::traceparent/MessageOptions::tracestate, which take precedence when set. - Ambient callback via
ClientOptions::on_get_trace_context, which the SDK invokes beforesession.create,session.resume, andsession.sendwhenever the per-turn override is absent.
Structs§
- Trace
Context - W3C Trace Context headers propagated to and from the GitHub Copilot CLI.
Traits§
- Trace
Context Provider - Async provider that returns the current
TraceContextfor outbound session RPCs.