Joe Savona
3cd64c8d7c
Preserve MCP trace context when tracing is disabled ( #60506 )
...
## Why
MCP requests need to retain inbound W3C trace context even when no OpenTelemetry tracing layer is installed.
## What changed
- Carry validated request trace context through app-server MCP tasks, connection startup, and resource listing tasks, while preferring active span context.
- Forward fallback `traceparent` and `tracestate` headers for MCP HTTP requests, including discovery and initialization.
- Use HTTP trace headers as a fallback for exec-server RPC calls when active span context is unavailable.
## Testing
Add an app-server integration test that disables trace exporting and verifies that `mcpServer/resource/read` forwards the inbound `traceparent` and `tracestate` to the MCP server.
GitOrigin-RevId: c886a55ce0a3992f1b2e04614efec80a20cb4b49
2026-11-10 03:01:14 +00:00
..
2026-11-10 03:01:14 +00:00
2026-11-06 00:37:27 +00:00
2026-10-29 23:56:17 +00:00
2026-11-02 20:36:39 +00:00
2026-11-05 22:03:55 +00:00
2026-08-15 03:00:35 +00:00
2026-11-05 04:25:19 +00:00
2026-11-05 17:56:59 +00:00
2026-11-06 00:37:27 +00:00
2026-07-21 08:59:41 +00:00
2026-10-19 17:02:20 +00:00
2026-10-13 18:15:50 +00:00
2026-09-23 22:20:34 +00:00
2026-09-03 20:01:07 +00:00
2026-10-09 19:22:21 +00:00
2026-09-22 21:07:20 +00:00
2026-09-22 21:07:20 +00:00
2026-08-20 18:48:17 +00:00
2026-11-05 22:03:55 +00:00
2026-10-26 19:03:08 +00:00
2026-10-09 23:28:38 +00:00
2026-09-04 23:06:00 +00:00
2026-11-02 21:09:09 +00:00
2026-11-05 22:03:55 +00:00
2026-10-30 05:30:20 +00:00
2026-10-15 00:00:57 +00:00
2026-10-05 18:54:17 +00:00
2026-10-05 18:54:17 +00:00
2026-10-07 00:29:04 +00:00
2026-10-07 00:29:04 +00:00
2026-10-05 18:54:17 +00:00
2026-06-17 17:20:53 -07:00
2026-06-17 17:20:53 -07:00
2026-10-05 18:54:17 +00:00
2026-11-08 02:27:59 +00:00
2026-10-02 03:31:52 +00:00
2026-10-02 04:25:52 +00:00
2026-09-02 21:58:58 +00:00
2026-08-18 18:15:21 +00:00
2026-10-02 04:25:52 +00:00
2026-10-02 04:25:52 +00:00
2026-10-09 11:08:24 +00:00
2026-11-05 00:30:20 +00:00
2026-11-05 04:25:19 +00:00
2026-08-20 08:10:08 +00:00
2026-09-30 18:18:03 +00:00
2026-10-02 04:25:52 +00:00
2026-10-16 04:42:32 +00:00
2026-11-02 21:09:09 +00:00
2026-07-25 16:03:00 +00:00
2026-07-25 16:03:00 +00:00
2026-11-05 22:03:55 +00:00
2026-11-05 22:03:55 +00:00
2026-10-22 01:54:51 +00:00
2026-11-07 02:46:41 +00:00
2026-09-23 22:10:28 +00:00
2026-09-13 06:07:03 +00:00
2026-08-18 13:36:16 +00:00
2026-10-02 04:25:52 +00:00
2026-11-05 01:54:03 +00:00
2026-06-15 17:39:00 -07:00
2026-10-06 23:07:25 +00:00
2026-10-06 23:07:25 +00:00
2026-11-05 22:03:55 +00:00
2026-10-01 00:43:55 +00:00
2026-10-29 23:56:17 +00:00
2026-10-29 23:56:17 +00:00
2026-07-30 19:23:33 +00:00
2026-11-05 22:03:55 +00:00
2026-07-20 13:45:29 +00:00
2026-09-04 23:06:00 +00:00
2026-09-29 18:34:48 +00:00
2026-09-22 21:07:20 +00:00
2026-09-22 21:07:20 +00:00
2026-09-23 22:10:28 +00:00
2026-11-10 03:01:14 +00:00
2026-10-07 00:29:04 +00:00
2026-10-29 23:56:17 +00:00
2026-10-02 04:25:52 +00:00
2026-10-29 23:56:17 +00:00
2026-10-07 21:52:43 +00:00
2026-09-26 23:17:41 +00:00
2026-10-15 22:25:58 +00:00
2026-09-25 12:23:15 +00:00
2026-09-25 12:23:15 +00:00
2026-10-01 00:48:08 +00:00
2026-10-15 22:25:58 +00:00
2026-10-15 22:25:58 +00:00
2026-11-02 21:09:09 +00:00
2026-06-25 13:42:40 -07:00
2026-08-17 20:36:10 +00:00
2026-07-01 14:15:34 -07:00
2026-07-01 14:15:34 -07:00