Owen Lin
20f2a216df
feat(core, tracing): create turn spans over websockets ( #14632 )
...
## Description
Dependent on:
- [responsesapi] https://github.com/openai/openai/pull/760991
- [codex-backend] https://github.com/openai/openai/pull/760985
`codex app-server -> codex-backend -> responsesapi` now reuses a
persistent websocket connection across many turns. This PR updates
tracing when using websockets so that each `response.create` websocket
request propagates the current tracing context, so we can get a holistic
end-to-end trace for each turn.
Tracing is propagated via special keys (`ws_request_header_traceparent`,
`ws_request_header_tracestate`) set in the `client_metadata` param in
Responses API.
Currently tracing on websockets is a bit broken because we only set
tracing context on ws connection time, so it's detached from a
`turn/start` request.
2026-03-19 03:41:06 +00:00
..
2026-03-13 20:51:01 -07:00
2026-02-20 23:45:35 -08:00
2026-03-11 12:33:09 -07:00
2026-03-17 20:21:46 +00:00
2026-03-17 20:21:46 +00:00
2026-03-18 06:42:26 +00:00
2026-02-18 09:27:04 -08:00
2026-03-13 20:12:25 -06:00
2026-03-19 03:41:06 +00:00
2026-03-18 09:37:13 -07:00
2026-03-18 16:11:10 -07:00
2026-02-20 23:45:35 -08:00
2026-03-13 20:51:01 -07:00
2026-03-13 20:51:01 -07:00
2026-03-13 20:51:01 -07:00
2026-03-17 19:46:44 -07:00
2026-03-13 15:27:00 -07:00
2026-03-04 04:40:22 +00:00
2026-03-13 10:13:39 -07:00
2026-03-11 20:18:31 -07:00
2026-03-04 04:40:22 +00:00
2026-03-17 22:09:22 -07:00
2026-03-02 20:29:33 -08:00
2026-03-11 12:33:08 -07:00
2026-03-11 14:44:44 -07:00
2026-03-02 20:29:33 -08:00
2025-12-23 19:29:32 -08:00
2026-03-02 20:29:33 -08:00
2026-03-07 03:48:36 -08:00
2026-03-13 15:51:19 -07:00
2026-02-25 15:20:46 -08:00
2026-03-13 15:27:00 -07:00
2026-03-17 19:46:44 -07:00
2026-03-13 20:51:01 -07:00
2026-03-17 19:46:44 -07:00
2026-03-02 20:29:33 -08:00
2026-03-08 19:06:30 -07:00
2026-03-13 15:27:00 -07:00
2026-02-20 23:45:35 -08:00
2026-03-13 15:27:00 -07:00
2026-03-02 11:57:32 +00:00
2026-03-17 19:46:44 -07:00
2026-03-14 22:24:13 -07:00
2026-03-13 15:27:00 -07:00
2026-02-20 23:45:35 -08:00
2026-03-18 15:19:49 -07:00
2026-03-17 19:46:44 -07:00
2026-03-04 04:40:22 +00:00
2026-03-12 21:13:17 -07:00
2026-03-12 21:13:17 -07:00
2026-03-04 04:40:22 +00:00
2026-03-11 20:18:31 -07:00
2026-03-13 15:27:00 -07:00
2026-03-13 15:27:00 -07:00
2026-03-17 19:46:44 -07:00
2026-03-07 03:48:36 -08:00
2026-03-02 20:29:33 -08:00
2026-03-15 21:41:55 -07:00
2026-02-20 23:45:35 -08:00
2026-03-09 19:09:56 +00:00
2026-03-08 13:37:41 -07:00
2026-03-04 04:40:22 +00:00
2026-03-12 16:38:04 -07:00
2026-03-02 20:29:33 -08:00
2026-03-17 19:46:44 -07:00
2026-03-18 22:44:31 +00:00
2026-03-17 10:07:46 -07:00
2026-03-17 10:07:46 -07:00
2026-03-11 12:33:10 -07:00
2026-03-04 04:40:22 +00:00
2026-03-02 20:29:33 -08:00
2026-03-04 04:40:22 +00:00
2026-03-02 20:29:33 -08:00
2026-03-11 12:33:09 -07:00
2026-03-04 04:40:22 +00:00
2026-03-15 22:17:25 -07:00
2026-03-11 20:18:31 -07:00
2026-02-27 16:05:44 +01:00
2026-03-07 02:30:21 +00:00
2026-03-18 13:58:20 -07:00
2026-03-07 00:50:50 +00:00
2026-03-17 19:46:44 -07:00