feat: add metric to track the number of turns with memory usage (#18662)

Add a metric `codex.turn.memory` to know if a turn used memories or not.
This is not part of the other turn metrics as a label to limit
cardinality
This commit is contained in:
jif-oai
2026-04-20 14:31:22 +01:00
committed by GitHub
Unverified
parent 1c24347772
commit 2c59806fe0
8 changed files with 138 additions and 26 deletions
+1
View File
@@ -105,6 +105,7 @@ pub(crate) struct TurnState {
mailbox_delivery_phase: MailboxDeliveryPhase,
granted_permissions: Option<PermissionProfile>,
pub(crate) tool_calls: u64,
pub(crate) has_memory_citation: bool,
pub(crate) token_usage_at_turn_start: TokenUsage,
}