Fix editor edited event property field name (#24145)

Release Notes:

- N/A
This commit is contained in:
Joseph T. Lyons 2025-02-03 16:28:14 -05:00 committed by GitHub
parent 45708d2680
commit 11e095b56a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -359,14 +359,14 @@ impl Telemetry {
drop(state);
if let Some((start, end, environment)) = period_data {
let duration_milliseconds = end
let duration = end
.saturating_duration_since(start)
.min(Duration::from_secs(60 * 60 * 24))
.as_millis() as i64;
telemetry::event!(
"Editor Edited",
duration_milliseconds = duration_milliseconds,
duration = duration,
environment = environment.to_string(),
is_via_ssh = is_via_ssh
);