Git telemetry (#26222)

Release Notes:

- git: Adds telemetry to git actions
This commit is contained in:
Conrad Irwin 2025-03-06 10:56:28 -07:00 committed by GitHub
parent 219d36f589
commit 9c054f207e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 25 additions and 0 deletions

View file

@ -301,6 +301,7 @@ impl CommitModal {
})
.disabled(!can_commit)
.on_click(cx.listener(move |this, _: &ClickEvent, window, cx| {
telemetry::event!("Git Committed", source = "Git Modal");
this.git_panel
.update(cx, |git_panel, cx| git_panel.commit_changes(window, cx));
cx.emit(DismissEvent);
@ -334,6 +335,7 @@ impl CommitModal {
}
fn commit(&mut self, _: &git::Commit, window: &mut Window, cx: &mut Context<Self>) {
telemetry::event!("Git Committed", source = "Git Modal");
self.git_panel
.update(cx, |git_panel, cx| git_panel.commit_changes(window, cx));
cx.emit(DismissEvent);