Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

chore: warning metric (#9487)

jif-oai92cf2a1c3af7
diff --git a/codex-rs/core/src/codex.rs b/codex-rs/core/src/codex.rs
index e677794386..b6876c83c0 100644
--- a/codex-rs/core/src/codex.rs
+++ b/codex-rs/core/src/codex.rs
@@ -1390,6 +1390,9 @@ impl Session {
}
pub(crate) async fn record_model_warning(&self, message: impl Into<String>, ctx: &TurnContext) {
+ self.services
+ .otel_manager
+ .counter("codex.model_warning", 1, &[]);
let item = ResponseItem::Message {
id: None,
role: "user".to_string(),