Mark app event as open if we fail to get installation_id

If we find a previous installation_id, then we send `open`. If we don't find a previous installation_id, then we sent as `first open`. If we fail, we mark it as `open` so that we don't accidentally bloat our `first open` stats.
This commit is contained in:
Joseph T. Lyons 2023-11-20 16:04:15 -05:00
parent db3f487474
commit a0dcc9618e
2 changed files with 4 additions and 4 deletions

View file

@ -175,8 +175,8 @@ fn main() {
// Copy logic to zed2
let telemetry_settings = *settings::get::<TelemetrySettings>(cx);
let event_operation = match existing_installation_id_found {
Some(true) => "open",
_ => "first open",
Some(false) => "first open",
_ => "open",
};
client
.telemetry()

View file

@ -179,8 +179,8 @@ fn main() {
client.telemetry().start(installation_id, session_id, cx);
let telemetry_settings = *client::TelemetrySettings::get_global(cx);
let event_operation = match existing_installation_id_found {
Some(true) => "open",
_ => "first open",
Some(false) => "first open",
_ => "open",
};
client
.telemetry()