mirror of
https://github.com/openai/codex.git
synced 2026-09-06 15:29:32 +00:00
## Why Classification metrics report failures without distinguishing their causes, and WebSocket connection attempts lack a dedicated duration metric. ## What changed - Add `failure_reason` tags to classification counters and duration histograms, covering setup, sampler, and output-processing errors. - Record `codex.guardian_v2.connection.duration_ms` for WebSocket connection attempts with endpoint, outcome, and failure reason tags. - Map sampler errors to fixed, low-cardinality categories instead of using error messages that may contain server responses or credentials. GitOrigin-RevId: bb366be92af2f605643ea7cd527678fa8dbfe53f