mirror of
https://github.com/openai/codex.git
synced 2026-10-23 18:08:45 +00:00
Simplify startup telemetry event names
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user