Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Introduce a telemetry event for when a tool finishes (#28380)
Antonio Scandurrac0ad3e81836c
diff --git a/crates/agent/src/tool_use.rs b/crates/agent/src/tool_use.rsindex 8fce4ac67a1..285e72d993e 100644--- a/crates/agent/src/tool_use.rs+++ b/crates/agent/src/tool_use.rs@@ -334,6 +334,8 @@ impl ToolUseState {output: Result<String>,cx: &App,) -> Option<PendingToolUse> {+ telemetry::event!("Agent Tool Finished", tool_name, success = output.is_ok());+match output {Ok(tool_result) => {let model_registry = LanguageModelRegistry::read_global(cx);