Files
codex/codex-rs/otel/src
bkotsopoulos 9b64b43207 Record pre-sampling overhead in turn telemetry (#64799)
## What changed

Record `codex.turn.pre_sampling.duration_ms` when a sampling phase starts. Use the `is_first_sampling_request` label to distinguish overhead before the first request from overhead accumulated since the preceding request. The timing excludes tool blocking and compaction.

## Testing

Extend turn timing tests to verify the first-request duration, per-request overhead across subsequent requests, and the exclusion of tool blocking and compaction.

GitOrigin-RevId: 068be5cb4d1345dc064fa8f1df2469dfa0f3071f
2026-11-30 19:56:54 +00:00
..