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-08 18:07:06 -06:00 committed by GitHub
parent afde25a5cb
commit c0ad3e8183
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);