From f2dfb6e6094038b339a60bec2e232a366d765442 Mon Sep 17 00:00:00 2001 From: Mehul Kar Date: Fri, 26 Jul 2024 13:27:04 -0500 Subject: [PATCH] chore(telemetry): remove unused codepath field --- crates/turborepo-lib/src/cli/mod.rs | 1 - crates/turborepo-telemetry/src/events/command.rs | 13 ------------- 2 files changed, 14 deletions(-) diff --git a/crates/turborepo-lib/src/cli/mod.rs b/crates/turborepo-lib/src/cli/mod.rs index f02a04217390e..0db5d24d995d8 100644 --- a/crates/turborepo-lib/src/cli/mod.rs +++ b/crates/turborepo-lib/src/cli/mod.rs @@ -1257,7 +1257,6 @@ pub async fn run( } run_args.track(&event); - event.track_run_code_path(CodePath::Rust); let exit_code = run::run(base, event).await.inspect(|code| { if *code != 0 { error!("run failed: command exited ({code})"); diff --git a/crates/turborepo-telemetry/src/events/command.rs b/crates/turborepo-telemetry/src/events/command.rs index f010dbe22a8e8..6442bf72369d7 100644 --- a/crates/turborepo-telemetry/src/events/command.rs +++ b/crates/turborepo-telemetry/src/events/command.rs @@ -126,19 +126,6 @@ impl CommandEventBuilder { self } - // run - pub fn track_run_code_path(&self, path: CodePath) -> &Self { - self.track(Event { - key: "binary".to_string(), - value: match path { - CodePath::Go => "go".to_string(), - CodePath::Rust => "rust".to_string(), - }, - is_sensitive: EventType::NonSensitive, - }); - self - } - // login pub fn track_login_method(&self, method: LoginMethod) -> &Self { self.track(Event {