diff --git a/crates/client/src/telemetry.rs b/crates/client/src/telemetry.rs index b470dde004..1a0238cd0f 100644 --- a/crates/client/src/telemetry.rs +++ b/crates/client/src/telemetry.rs @@ -157,16 +157,13 @@ impl Telemetry { self.executor .spawn( async move { - let (device_id, is_first_time_start) = - if let Ok(Some(device_id)) = db.read_kvp("device_id") { - (device_id, false) - } else { - let device_id = Uuid::new_v4().to_string(); - db.write_kvp("device_id", &device_id)?; - (device_id, true) - }; - - this.report_start_app(is_first_time_start); + let device_id = if let Ok(Some(device_id)) = db.read_kvp("device_id") { + device_id + } else { + let device_id = Uuid::new_v4().to_string(); + db.write_kvp("device_id", &device_id)?; + device_id + }; let device_id: Arc = device_id.into(); let mut state = this.state.lock(); @@ -263,13 +260,6 @@ impl Telemetry { } } - pub fn report_start_app(self: &Arc, is_first_time_start: bool) { - self.report_event( - "start app", - json!({ "First Time Open": is_first_time_start }), - ) - } - fn flush(self: &Arc) { let mut state = self.state.lock(); let mut events = mem::take(&mut state.queue); diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs index 168152efac..74a38599ec 100644 --- a/crates/zed/src/main.rs +++ b/crates/zed/src/main.rs @@ -150,6 +150,7 @@ fn main() { let project_store = cx.add_model(|_| ProjectStore::new()); let db = cx.background().block(db); client.start_telemetry(db.clone()); + client.report_event("start app", Default::default()); let app_state = Arc::new(AppState { languages,