mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
chore: add mcp call metric (#8973)
This commit is contained in:
committed by
GitHub
Unverified
parent
16c66c37eb
commit
225614d7fb
@@ -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 }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user