Merge pull request #1824 from zed-industries/change-telemetry-event-field-name-to-app

Change telemetry event field name to app
This commit is contained in:
Joseph T. Lyons 2022-10-27 13:16:45 -04:00 committed by GitHub
commit afe9ab9d8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);