mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
## Why A Statsig gate can return `false` while bootstrap is in progress or because the cached evaluation is disabled. Update failures also share a generic debug message, which makes recurring failures hard to diagnose. ## What changed Record OpenTelemetry counts and durations for bootstrap and refresh, tagged by outcome and failure category. Record gate and dynamic config counts after successful updates. Skip update metrics while waiting for authentication. Count gate and dynamic config reads by name, kind, and reason. Use fixed reason labels to distinguish fallback reads from evaluated reads while keeping targeting values out of the metrics. ## Testing Check that a gate read during bootstrap and a read after bootstrap emit distinct reasons, and that wrapped network policy denials retain the `policy` category. GitOrigin-RevId: ca4a248ee8ec7ed1318b2b2d320b9e9df08cbe5e