mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 01:34:02 +00:00
Change telemetry event field name to app
This commit is contained in:
parent
02cf7679a3
commit
31a904d370
2 changed files with 6 additions and 4 deletions
|
@ -68,7 +68,8 @@ struct AmplitudeEvent {
|
||||||
os_name: &'static str,
|
os_name: &'static str,
|
||||||
os_version: Option<Arc<str>>,
|
os_version: Option<Arc<str>>,
|
||||||
app_version: Option<Arc<str>>,
|
app_version: Option<Arc<str>>,
|
||||||
platform: &'static str,
|
#[serde(rename = "App")]
|
||||||
|
app: &'static str,
|
||||||
event_id: usize,
|
event_id: usize,
|
||||||
session_id: u128,
|
session_id: u128,
|
||||||
time: u128,
|
time: u128,
|
||||||
|
@ -217,7 +218,7 @@ impl AmplitudeTelemetry {
|
||||||
user_id: state.metrics_id.clone(),
|
user_id: state.metrics_id.clone(),
|
||||||
device_id: state.device_id.clone(),
|
device_id: state.device_id.clone(),
|
||||||
os_name: state.os_name,
|
os_name: state.os_name,
|
||||||
platform: "Zed",
|
app: "Zed",
|
||||||
os_version: state.os_version.clone(),
|
os_version: state.os_version.clone(),
|
||||||
app_version: state.app_version.clone(),
|
app_version: state.app_version.clone(),
|
||||||
event_id: post_inc(&mut state.next_event_id),
|
event_id: post_inc(&mut state.next_event_id),
|
||||||
|
|
|
@ -71,7 +71,8 @@ struct MixpanelEventProperties {
|
||||||
os_version: Option<Arc<str>>,
|
os_version: Option<Arc<str>>,
|
||||||
app_version: Option<Arc<str>>,
|
app_version: Option<Arc<str>>,
|
||||||
signed_in: bool,
|
signed_in: bool,
|
||||||
platform: &'static str,
|
#[serde(rename = "App")]
|
||||||
|
app: &'static str,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize)]
|
||||||
|
@ -229,7 +230,7 @@ impl Telemetry {
|
||||||
os_version: state.os_version.clone(),
|
os_version: state.os_version.clone(),
|
||||||
app_version: state.app_version.clone(),
|
app_version: state.app_version.clone(),
|
||||||
signed_in: state.metrics_id.is_some(),
|
signed_in: state.metrics_id.is_some(),
|
||||||
platform: "Zed",
|
app: "Zed",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
state.queue.push(event);
|
state.queue.push(event);
|
||||||
|
|
Loading…
Reference in a new issue