Skip to content

Commit

Permalink
Fix editor edited event property field name (#24145)
Browse files Browse the repository at this point in the history
Release Notes:

- N/A
  • Loading branch information
JosephTLyons authored Feb 3, 2025
1 parent 45708d2 commit 11e095b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/client/src/telemetry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down

0 comments on commit 11e095b

Please sign in to comment.