Revert Amplitude's "app" name back to "platform"

This was unintentional.  We only want to rename the Mixpanel telemetry "platform" field to "app."  We want to keep it as "platform" on Amplitude because we want to keep using Amplitude for a bit, and the event fields should be the same.
This commit is contained in:
Joseph T Lyons 2022-10-31 19:18:03 -04:00
parent 482a5bb02a
commit 495fd151f5

View File

@ -70,8 +70,7 @@ 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>>,
#[serde(rename = "App")] platform: &'static str,
app: &'static str,
release_channel: Option<&'static str>, release_channel: Option<&'static str>,
event_id: usize, event_id: usize,
session_id: u128, session_id: u128,
@ -221,7 +220,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,
app: "Zed", platform: "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(),
release_channel: state.release_channel, release_channel: state.release_channel,