chore: add mcp call metric (#8973)
This commit is contained in:
parent
16c66c37eb
commit
225614d7fb
1 changed files with 6 additions and 0 deletions
|
|
@ -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 }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue