feat: tool call duration metric (#9364)
This commit is contained in:
parent
ebdd8795e9
commit
e650d4b02c
1 changed files with 5 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue