mchen-oai and GitHub
92d9036910
Add spans to turn lifecycle gaps ( #27623 )
...
## Why
Codex app-server latency traces do not granularly cover turn task
startup and inter-request handoffs. These spans help attribute time
across task execution, startup prewarm, in-flight tool completion, and
rollout persistence.
## What changed
- Add `session_task.run` spans around task execution and
`session_task.flush_rollout` around flushing pending conversation
transcript writes to durable storage
- Add `regular_task.prepare_run_turn` around regular-turn startup (Send
the `TurnStarted` event, reset turn-specific reasoning state, and
resolve any startup prewarm)
- Add `startup_prewarm.resolve` around waiting for background session
prewarming to finish, fail, time out, or be cancelled
- Add a function-level trace span around draining in-flight tool calls
(Wait for tool calls to complete, record tool result in conversation
history, and other bookkeeping)
## Verification
Trigger Codex rollout and observe new spans are included
2026-06-11 16:55:01 -07:00
..
2026-06-10 11:22:12 -07:00
2026-04-21 10:22:36 -07:00
2026-04-07 00:32:41 +00:00
2026-06-11 21:54:52 +02:00
2026-06-11 15:10:29 -07:00
2026-06-11 04:11:26 +00:00
2026-06-11 19:28:47 +00:00
2026-06-10 12:01:03 -07:00
2026-06-03 10:41:41 -07:00
2026-06-11 16:55:01 -07:00
2026-06-11 11:28:16 +02:00
2026-06-11 16:55:01 -07:00
2026-06-11 16:32:52 -07:00
2026-06-10 11:18:09 -07:00
2026-03-24 18:10:53 -07:00
2026-06-11 19:28:47 +00:00
2026-06-11 19:28:47 +00:00
2026-04-07 21:20:22 +00:00
2026-05-11 16:33:44 -07:00
2026-05-08 12:36:02 -07:00
2026-06-10 20:43:03 -07:00
2026-06-10 20:43:03 -07:00
2026-06-11 13:42:09 -07:00
2026-06-11 13:42:09 -07:00
2026-06-10 08:33:21 -07:00
2026-06-11 19:28:47 +00:00
2026-06-10 11:18:09 -07:00
2026-03-12 08:16:36 -07:00
2026-04-01 23:06:24 -07:00
2026-06-11 13:42:09 -07:00
2026-06-11 13:42:09 -07:00
2026-06-11 04:11:26 +00:00
2026-06-11 13:42:09 -07:00
2026-06-10 12:54:21 +02:00
2026-06-02 13:18:59 -07:00
2026-06-11 21:54:52 +02:00
2026-03-12 00:35:21 -07:00
2026-06-03 18:36:10 +02:00
2026-06-11 11:28:16 +02:00
2026-06-11 11:28:16 +02:00
2026-04-26 15:10:53 -07:00
2026-04-26 15:10:53 -07:00
2026-06-05 11:20:52 -07:00
2026-06-05 11:20:52 -07:00
2026-06-05 11:20:52 -07:00
2026-06-03 10:41:41 -07:00
2026-06-03 10:41:41 -07:00
2026-05-13 11:31:27 +02:00
2026-06-08 21:32:46 -07:00
2026-06-11 06:07:06 +00:00
2026-06-10 19:21:24 -07:00
2026-06-10 19:21:24 -07:00
2026-04-28 13:03:28 +02:00
2026-04-28 19:43:44 -07:00
2026-06-11 13:42:09 -07:00
2026-05-13 11:15:25 -07:00
2026-06-09 22:44:16 +02:00
2026-05-26 20:59:47 -07:00
2026-06-10 08:33:21 -07:00
2026-06-10 08:33:21 -07:00
2026-05-28 10:24:03 -07:00
2026-06-10 04:41:06 +00:00
2026-06-11 21:54:52 +02:00
2026-05-19 11:24:09 +02:00
2026-03-25 11:05:35 -07:00
2026-04-02 23:00:02 -07:00
2026-04-09 10:53:06 -07:00
2026-05-20 17:10:37 -07:00
2026-06-02 13:18:59 -07:00
2026-04-24 17:49:29 -07:00
2026-05-11 11:32:40 -07:00
2026-06-02 12:10:14 +02:00
2026-05-26 10:34:43 +02:00
2026-06-11 19:28:47 +00:00
2026-06-09 00:38:35 +00:00
2026-04-23 10:17:09 -07:00
2026-05-20 16:03:51 -07:00
2026-06-10 21:32:29 +00:00
2026-06-01 18:45:07 +00:00
2026-06-11 13:42:09 -07:00
2026-05-26 11:01:18 +02:00
2026-04-01 23:06:24 -07:00
2026-06-01 23:33:42 +00:00
2026-05-19 11:03:47 -07:00
2026-05-07 11:33:47 +02:00
2026-05-15 10:58:50 -07:00
2026-05-15 10:58:50 -07:00
2026-04-20 22:39:17 -07:00
2026-04-03 00:33:34 -07:00
2026-06-11 16:55:01 -07:00
2026-05-04 11:46:03 -07:00
2026-06-04 22:36:25 -07:00
2026-03-27 19:00:44 -07:00
2026-06-04 22:36:25 -07:00
2026-06-03 15:38:30 +02:00
2026-06-03 10:41:41 -07:00
2026-05-04 11:46:03 -07:00
2026-06-10 14:31:09 +02:00
2026-06-04 09:39:20 -07:00
2026-06-11 13:42:09 -07:00
2026-06-11 19:28:47 +00:00
2026-06-11 19:28:47 +00:00
2026-05-27 15:49:08 +02:00
2026-05-27 15:49:08 +02:00
2026-06-10 17:17:44 -07:00
2026-06-10 17:17:44 -07:00
2026-06-11 13:42:09 -07:00
2026-06-11 13:42:09 -07:00
2026-06-05 11:27:10 -07:00
2026-06-05 11:27:10 -07:00
2026-04-20 22:39:17 -07:00
2026-04-20 22:39:17 -07:00
2026-05-14 16:54:59 -07:00
2026-05-14 16:54:59 -07:00
2026-05-28 15:26:55 -07:00
2026-05-28 15:26:55 -07:00
2026-05-22 12:13:52 +02:00
2026-05-29 11:01:44 -07:00