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
2025-04-09 00:07:06 +00:00
committed by GitHub
parent afde25a5cb
commit c0ad3e8183
+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);