Skip to content

Commit

Permalink
chore(telemetry): remove unused codepath field (#8855)
Browse files Browse the repository at this point in the history
The turbo version shuold be enough in telemetry now to know what people
are using, since both paths aren't supported in very many versions.
  • Loading branch information
mehulkar authored Jul 26, 2024
1 parent b356f70 commit 9cb7083
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion crates/turborepo-lib/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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})");
Expand Down
13 changes: 0 additions & 13 deletions crates/turborepo-telemetry/src/events/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9cb7083

Please sign in to comment.