Introduce a telemetry event for when a tool finishes (#28380)

This should help us understand which tools fail the most.

Release Notes:

- N/A
This commit is contained in:
Antonio Scandurra authored and GitHub committed 2025-04-09 00:07:06 +00:00
1 parent 1ebf3d829e
commit e8baea82ea
1 file changed
+2
+2
View File
@@ -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);