mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-29 04:20:46 +00:00
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:
parent
db3f487474
commit
a0dcc9618e
2 changed files with 4 additions and 4 deletions
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue