Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

agent: Add telemetry for checkpoint action usage (#65326)

Piotr Osiewiczf1a10a5227a3
diff --git a/crates/agent_ui/src/conversation_view/thread_view.rs b/crates/agent_ui/src/conversation_view/thread_view.rs
index 570d8993c07..bb39f454faa 100644
--- a/crates/agent_ui/src/conversation_view/thread_view.rs
+++ b/crates/agent_ui/src/conversation_view/thread_view.rs
@@ -3428,6 +3428,11 @@ impl ThreadView {
pub fn restore_checkpoint(&mut self, client_id: &ClientUserMessageId, cx: &mut Context<Self>) {
self.thread
.update(cx, |thread, cx| {
+ telemetry::event!(
+ "Agent Checkpoint Restored",
+ agent = thread.connection().telemetry_id(),
+ session = thread.session_id().clone(),
+ );
thread.restore_checkpoint(client_id.clone(), cx)
})
.detach_and_log_err(cx);