mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
feat: tool call duration metric (#9364)
This commit is contained in:
committed by
GitHub
Unverified
parent
ebdd8795e9
commit
e650d4b02c
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user