mirror of
https://github.com/openai/codex.git
synced 2026-11-19 22:30:42 +00:00
## Why Dividing total handler time by the call count gives a per-call mean without averaging histogram export batches. ## What changed Record `codex.exec_command.duration_total_ms` and `codex.exec_command.calls` for built-in `exec_command` handler runs, including failures. Measure from handler entry through command exit or the first yield, including shell setup and startup. Exclude calls rejected before the handler runs and retain tags such as `shell_snapshot_mode`, `success`, and `product_sku` when available. ## Testing Cover Statsig export of both counters and check that their counts and duration totals match the tool duration histogram for eligible calls within each tag set. GitOrigin-RevId: 4bf6dc628bca5758999bf0ed5f67051f870a61e8