Migrate more events to telemetry::event! macro (#24102)
I believe this takes care of the remaining events running through the old flow that requires transformation at the collab server level. I think all events are now going through `telemetry::event!()`. For anyone curious where the new telemetry names are coming from, you can check the `for_snowflake` function within `crates/collab/src/api/events.rs`, to see how collab is currently transforming the events going through the old flow. Release Notes: - N/A
This commit is contained in:
parent
a864168c27
commit
a8741dc310
16 changed files with 88 additions and 150 deletions
|
@ -376,14 +376,14 @@ fn main() {
|
|||
if let (Some(system_id), Some(installation_id)) = (&system_id, &installation_id) {
|
||||
match (&system_id, &installation_id) {
|
||||
(IdType::New(_), IdType::New(_)) => {
|
||||
telemetry.report_app_event("first open".to_string());
|
||||
telemetry.report_app_event("first open for release channel".to_string());
|
||||
telemetry::event!("App First Opened");
|
||||
telemetry::event!("App First Opened For Release Channel");
|
||||
}
|
||||
(IdType::Existing(_), IdType::New(_)) => {
|
||||
telemetry.report_app_event("first open for release channel".to_string());
|
||||
telemetry::event!("App First Opened For Release Channel");
|
||||
}
|
||||
(_, IdType::Existing(_)) => {
|
||||
telemetry.report_app_event("open".to_string());
|
||||
telemetry::event!("App Opened");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -512,10 +512,7 @@ fn register_actions(
|
|||
})
|
||||
.register_action(|_, action: &OpenBrowser, _window, cx| cx.open_url(&action.url))
|
||||
.register_action(|workspace, _: &workspace::Open, window, cx| {
|
||||
workspace
|
||||
.client()
|
||||
.telemetry()
|
||||
.report_app_event("open project".to_string());
|
||||
telemetry::event!("Project Opened");
|
||||
let paths = workspace.prompt_for_open_path(
|
||||
PathPromptOptions {
|
||||
files: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue