Simplify startup telemetry event names

This commit is contained in:
Ahmed Ibrahim
2026-05-28 11:05:52 -07:00
parent f29c0be3ff
commit f71b306e3f
7 changed files with 64 additions and 79 deletions
+2 -2
View File
@@ -1069,12 +1069,12 @@ pub async fn run_main_with_transport_options(
info!("processor task exited (channel closed)");
}
});
let startup_duration_ms = app_server_started_at
let duration_ms = app_server_started_at
.elapsed()
.as_millis()
.try_into()
.unwrap_or(u64::MAX);
analytics_events_client.track_app_server_started(startup_duration_ms, remote_control_enabled);
analytics_events_client.track_app_server_started(duration_ms, remote_control_enabled);
drop(transport_event_tx);
@@ -448,10 +448,10 @@ async fn thread_start_tracks_thread_initialized_analytics() -> Result<()> {
"user",
);
let thread_start_timings = [
"thread_start_duration_ms",
"thread_start_prepare_duration_ms",
"thread_start_spawn_duration_ms",
"thread_start_finalize_duration_ms",
"duration_ms",
"prepare_duration_ms",
"spawn_duration_ms",
"finalize_duration_ms",
]
.map(|field| event["event_params"][field].as_u64().is_some());
assert_eq!(thread_start_timings, [true, true, true, true]);