chore: add mcp call metric (#8973)

This commit is contained in:
jif-oai
2026-01-09 13:09:21 +00:00
committed by GitHub
Unverified
parent 16c66c37eb
commit 225614d7fb
+6
View File
@@ -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 }
}