Lightweight coding agent that runs in your terminal
Rust
chore: add mcp call metric (#8973)
jif-oai225614d7fbbc
diff --git a/codex-rs/core/src/mcp_tool_call.rs b/codex-rs/core/src/mcp_tool_call.rsindex 5166410372..6066c1512e 100644--- a/codex-rs/core/src/mcp_tool_call.rs+++ b/codex-rs/core/src/mcp_tool_call.rs@@ -72,6 +72,12 @@ pub(crate) async fn handle_mcp_tool_call(notify_mcp_tool_call_event(sess, turn_context, tool_call_end_event.clone()).await;+ let status = if result.is_ok() { "ok" } else { "error" };+ turn_context+ .client+ .get_otel_manager()+ .counter("codex.mcp.call", 1, &[("status", status)]);+ResponseInputItem::McpToolCallOutput { call_id, result }}