Answer: The SDK propagates W3C Trace Context (traceparent/tracestate) on JSON-RPC payloads so the application's spans and the CLI's spans are linked in one distributed trace. Outbound (SDK → CLI), Node.js uses an onGetTraceContext callback called before session.create, session.resume, and session.send RPCs, while Python, Go, and .NET inject automatically; inbound (CLI → SDK), the CLI's traceparent and tracestate are available in tool handlers in all languages. Status: Confirmed Entry: tool/github-copilot/features/trace-context-propagation Revision: 3 Digest: sha256:9afa81c220d5f754 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:28:48Z Last changed: 2026-11-19T13:02:56Z (Node.js inbound raw strings: — → traceparent and tracestate are passed as raw strings on the ToolInvocation object) Last verified: 2026-11-20T13:09:20Z Next check: 2026-11-21T13:09:20Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of propagation mechanism | W3C Trace Context ( traceparent / tracestate ) | [1] | 2026-11-20 outbound Node.js callback | onGetTraceContext | [1] | 2026-11-20 RPCs triggering callback | session.create , session.resume , and session.send | [1] | 2026-11-20 automatic injection languages | Python , Go , and .NET | [1] | 2026-11-20 Go inbound field | ToolInvocation.TraceContext | [1] | 2026-11-20 Python inbound helper | trace_context() | [1] | 2026-11-20 Node.js inbound raw strings | traceparent and tracestate are passed as raw strings on the ToolInvocation object | [1] | 2026-11-20 Sources: [1] GitHub. "OpenTelemetry instrumentation for Copilot SDK - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-sdk/observability/opentelemetry Role: primary. Accessed: 2026-11-20T13:09:20Z Quote: "The SDK can propagate W3C Trace Context ( traceparent / tracestate ) on JSON-RPC payloads" (Supports: propagation mechanism) Quote: "For Node.js , provide an onGetTraceContext callback on the client options." (Supports: outbound Node.js callback) Quote: "The SDK calls this callback before session.create , session.resume , and session.send RPCs" (Supports: RPCs triggering callback) Quote: "For Python , Go , and .NET , trace context injection is automatic when the respective OpenTelemetry/Activity API is configured—no callback is needed." (Supports: automatic injection languages) Quote: "Go : The ToolInvocation.TraceContext field is a context.Context with the trace already restored" (Supports: Go inbound field) Quote: "Python : Trace context is automatically restored around the handler via trace_context()" (Supports: Python inbound helper) Quote: "Node.js : Since the SDK has no OpenTelemetry dependency, traceparent and tracestate are passed as raw strings on the ToolInvocation object." (Supports: Node.js inbound raw strings) Snapshot SHA-256: fe05fd2e119379e6e76aa037ed37405bcddcd2f00462a140b109e89320946bb1 (captured 2026-11-18T13:04:35Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:04:36Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:09:20Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:09:20Z Last attempt: 2026-11-20T13:09:20Z Notes and limitations: Extracted automatically from a single official source (section "Trace context propagation"). Related: https://latestn.com/tool/github-copilot/features/translate-code-example-response What does a GitHub Copilot response look like when translating code between languages? https://latestn.com/tool/github-copilot/features/translate-code-prompt How do I use GitHub Copilot to translate code to a different programming language? https://latestn.com/tool/github-copilot/features/unit-test-example-response What does a GitHub Copilot response look like when it generates unit tests? https://latestn.com/tool/github-copilot/features/synthesize-research-prompt How do I use GitHub Copilot to synthesize research? https://latestn.com/tool/github-copilot/features/template-example-prompt What does an example GitHub Copilot template prompt and response look like? https://latestn.com/tool/github-copilot/features/test-prompt-file How do I test a GitHub Copilot prompt file after creating it? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:02:56Z | changed | Node.js inbound raw strings: — → traceparent and tracestate are passed as raw strings on the ToolInvocation object | [1] 2026-11-19T13:02:56Z | changed | Python inbound helper: — → trace_context() | [1] 2026-11-19T13:02:56Z | changed | Go inbound field: — → ToolInvocation.TraceContext | [1] 2026-11-19T13:02:56Z | changed | automatic injection languages: — → Python , Go , and .NET | [1] 2026-11-19T13:02:56Z | changed | RPCs triggering callback: — → session.create , session.resume , and session.send | [1] 2026-11-19T13:02:56Z | changed | outbound Node.js callback: — → onGetTraceContext | [1] 2026-11-19T13:02:56Z | changed | propagation mechanism: — → W3C Trace Context ( traceparent / tracestate ) | [1] 2026-11-19T13:02:56Z | changed | inbound Node.js raw strings: traceparent and tracestate → — | [1] 2026-11-19T13:02:56Z | changed | inbound .NET mechanism: RestoreTraceContext() → — | [1] 2026-11-19T13:02:56Z | changed | inbound Python mechanism: trace_context() → — | [1] 2026-11-19T13:02:56Z | changed | inbound Go field: ToolInvocation.TraceContext → — | [1] 2026-11-19T13:02:56Z | changed | RPCs before which callback is called: session.create , session.resume , and session.send → — | [1] 2026-11-19T13:02:56Z | changed | outbound Node.js mechanism: onGetTraceContext → — | [1] 2026-11-19T13:02:56Z | changed | propagation format: W3C Trace Context → — | [1] 2026-11-17T13:27:35Z | changed | inbound .NET mechanism: — → RestoreTraceContext() | [1] 2026-11-17T13:27:35Z | changed | inbound Python mechanism: — → trace_context() | [1] 2026-11-17T13:27:35Z | changed | RPCs before which callback is called: — → session.create , session.resume , and session.send | [1] 2026-11-17T13:27:35Z | changed | automatic injection languages: Python , Go , and .NET → — | [1] 2026-11-17T13:27:35Z | changed | outbound RPCs: session.create , session.resume , and session.send → — | [1] 2026-11-13T03:28:48Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/features/trace-context-propagation/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/features/trace-context-propagation POST: https://latestn.com/dispute/tool/github-copilot/features/trace-context-propagation with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/features/trace-context-propagation?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How does trace context propagation work between the GitHub Copilot SDK and CLI? Revision 3, last verified 2026-11-20T13:09:20Z. https://latestn.com/tool/github-copilot/features/trace-context-propagation (accessed 2026-11-21T09:52:44Z). @misc{LatestN_tool_github_copilot_features_trace_context_propagation_r3, title = {How does trace context propagation work between the GitHub Copilot SDK and CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/features/trace-context-propagation}}, note = {Revision 3; digest sha256:9afa81c220d5f754; last verified 2026-11-20T13:09:20Z; accessed 2026-11-21T09:52:44Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/features/trace-context-propagation