Add settings events

This commit is contained in:
Joseph T. Lyons 2024-01-02 17:02:53 -05:00
parent 93a818d018
commit 3dd5641d2b
9 changed files with 89 additions and 12 deletions

View file

@ -168,6 +168,11 @@ fn main() {
client.telemetry().start(installation_id, session_id, cx);
let telemetry_settings = *settings::get::<TelemetrySettings>(cx);
client.telemetry().report_setting_event(
telemetry_settings,
"theme",
theme::current(cx).meta.name.to_string(),
);
let event_operation = match existing_installation_id_found {
Some(false) => "first open",
_ => "open",