Lightweight coding agent that runs in your terminal
Rust
feat: tool call duration metric (#9364)
jif-oaie650d4b02c69
diff --git a/codex-rs/otel/src/traces/otel_manager.rs b/codex-rs/otel/src/traces/otel_manager.rsindex 2b490bbb37..a1aaf0b513 100644--- a/codex-rs/otel/src/traces/otel_manager.rs+++ b/codex-rs/otel/src/traces/otel_manager.rs@@ -446,6 +446,11 @@ impl OtelManager {1,&[("tool", tool_name), ("success", success_str)],);+ self.record_duration(+ "codex.tool.call.duration_ms",+ duration,+ &[("tool", tool_name), ("success", success_str)],+ );tracing::event!(tracing::Level::INFO,event.name = "codex.tool_result",