Files
codex/codex-rs/statsig
iceweasel-oai a705e0bb69 Add metrics for Statsig updates and evaluations (#64184)
## 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
2026-11-26 16:57:11 +00:00
..