core-agent-ide/codex-rs/codex-api/src
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
..
endpoint don't add transcript for v2 realtime (#15111) 2026-03-18 15:54:13 -07:00
requests feat: search_tool migrate to bring you own tool of Responses API (#14274) 2026-03-11 17:51:51 -07:00
sse Apply argument comment lint across codex-rs (#14652) 2026-03-16 16:48:15 -07:00
auth.rs feat: clean codex-api part 1 (#10501) 2026-02-03 14:08:09 +00:00
common.rs feat(core, tracing): create turn spans over websockets (#14632) 2026-03-19 03:41:06 +00:00
error.rs change model cap to server overload (#11388) 2026-02-11 17:16:27 -08:00
lib.rs feat(core, tracing): create turn spans over websockets (#14632) 2026-03-19 03:41:06 +00:00
provider.rs feat: drop wire_api from clients (#10498) 2026-02-03 12:43:09 +00:00
rate_limits.rs Apply argument comment lint across codex-rs (#14652) 2026-03-16 16:48:15 -07:00
telemetry.rs Add auth 401 observability to client bug reports (#14611) 2026-03-14 15:38:51 -07:00