mirror of
https://github.com/openai/codex.git
synced 2026-11-14 21:40:39 +00:00
## What changed - Record acquisition counts, wait durations, and hold durations for file and secrets store locks, tagged by store, lock mode, operation, and originating client. Acquisition metrics also report outcome and contention. - Preserve the resolved credential store's originating client across storage operations and lock release, and exclude nonblocking probes from lock metrics. - Add `record_global_duration` for standalone durations with the existing buffering limits and metrics opt-out behavior. ## Testing Extend tests to verify lock metrics for shared and exclusive access, contention, timeouts, probe exclusion, and originating-client attribution. Add coverage for standalone duration buffering, validation, and opt-out behavior. GitOrigin-RevId: 96de8bd195477d61bc8cd966c5fbf72ae7156273