Repository navigation
FEAT: opt-in trace propagation for WebSocketCopilotTarget (part of phase 6.5) - #3056
Merged
Roman Lutz (romanlutz) merged 3 commits intoOct 11, 2026
Conversation
…ase 6.5) WebSocketCopilotTarget accepts trace_config. With tracing enabled, each send records a fresh request trace context, sends its trace ID in the prompt payload's own traceId field, and sends traceparent on the WebSocket handshake. Tracing stays off by default, the per-request requestId stays separate from the trace ID, and a stale link on a reused request is cleared.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Roman Lutz (romanlutz)
approved these changes
Oct 11, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Second target for phase 6.5, following #2945 for
LiteLLMChatTarget.WebSocketCopilotTargetnow acceptstrace_config. WithTargetTraceConfig(enabled=True), each send records a fresh request trace context through the sharedtarget_trace_contextpath, carries its trace ID in the prompt payload's owntraceIdfield (previously a random value equal torequestId), and sendstraceparenton the WebSocket handshake.requestIdstays a separate per-request value. Tracing is off by default, and a stale link on a reused request is cleared, as for the other targets.Tests cover a fresh context per request reaching both the handshake header and the payload, tracing off by default and with
enabled=False, and the link not being copied onto the response. Each fails with its part of the change removed. ruff and ty are clean, and the prompt target suite passes.