mirror of
https://github.com/openai/codex.git
synced 2026-11-14 06:48:26 +00:00
chore: metrics tool call (#8975)
This commit is contained in:
1 parent
e2e3f4490e
commit
7e5b3e069e
1 file changed
+5
-1
@@ -447,7 +447,11 @@ impl OtelManager {
|
||||
output: &str,
|
||||
) {
|
||||
let success_str = if success { "true" } else { "false" };
|
||||
|
||||
self.counter(
|
||||
"codex.tool.call",
|
||||
1,
|
||||
&[("tool", tool_name), ("success", success_str)],
|
||||
);
|
||||
tracing::event!(
|
||||
tracing::Level::INFO,
|
||||
event.name = "codex.tool_result",
|
||||
|
||||
Reference in new issue
Block a user