Change telemetry event field name to app

This commit is contained in:
Joseph T Lyons 2022-10-27 12:35:35 -04:00
parent 02cf7679a3
commit 31a904d370
2 changed files with 6 additions and 4 deletions

View File

@ -68,7 +68,8 @@ struct AmplitudeEvent {
os_name: &'static str,
os_version: Option<Arc<str>>,
app_version: Option<Arc<str>>,
platform: &'static str,
#[serde(rename = "App")]
app: &'static str,
event_id: usize,
session_id: u128,
time: u128,
@ -217,7 +218,7 @@ impl AmplitudeTelemetry {
user_id: state.metrics_id.clone(),
device_id: state.device_id.clone(),
os_name: state.os_name,
platform: "Zed",
app: "Zed",
os_version: state.os_version.clone(),
app_version: state.app_version.clone(),
event_id: post_inc(&mut state.next_event_id),

View File

@ -71,7 +71,8 @@ struct MixpanelEventProperties {
os_version: Option<Arc<str>>,
app_version: Option<Arc<str>>,
signed_in: bool,
platform: &'static str,
#[serde(rename = "App")]
app: &'static str,
}
#[derive(Serialize)]
@ -229,7 +230,7 @@ impl Telemetry {
os_version: state.os_version.clone(),
app_version: state.app_version.clone(),
signed_in: state.metrics_id.is_some(),
platform: "Zed",
app: "Zed",
},
};
state.queue.push(event);