You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Problem
When opencode connects to an MCP server over HTTP, the outbound requests do not carry the W3C traceparent / tracestate headers.
Expected Behavior
With OTel tracing enabled (OTEL_EXPORTER_OTLP_ENDPOINT set and experimental.openTelemetry: true), every outbound MCP HTTP request should carry the W3C traceparent (and tracestate when present) header derived from the currently-active trace context, so the MCP server's spans attach as children of the originating opencode span in the same trace.
Use Case
Operating a tracing-enabled MCP server (whether self-hosted or shared) and needing a single, complete trace per tool call across all hops.
Concretely, this unblocks:
Debugging tool-call latency end-to-end (where time is spent on the opencode side vs. inside the MCP server vs. in whatever the MCP server calls downstream).
Correlating errors raised inside the MCP server with the originating opencode session in a single view.
Activity
nexxeln commentedon May 19, 2026
will keep this open to see if there's more interest
github-actions commentedon Jul 19, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.