Skip to content

Commit 16d932b

Browse files
committed
Remove checks.
1 parent 92b1e3f commit 16d932b

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

crates/action-pipeline/src/subscribers/telemetry_subscriber.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use crate::event_emitter::{Event, Subscriber};
22
use async_trait::async_trait;
33
use moon_api::Launchpad;
4+
use moon_common::is_ci;
45
use moon_config::ToolchainConfig;
56
use std::sync::Arc;
67
use tokio::task::JoinHandle;
@@ -22,6 +23,11 @@ impl TelemetrySubscriber {
2223
#[async_trait]
2324
impl Subscriber for TelemetrySubscriber {
2425
async fn on_emit<'data>(&mut self, event: &Event<'data>) -> miette::Result<()> {
26+
// Only capture toolchain usage in CI
27+
if !is_ci() {
28+
return Ok(());
29+
}
30+
2531
match event {
2632
Event::PipelineStarted { .. } => {
2733
for (id, plugin) in &self.toolchain_config.plugins {

crates/api/src/launchpad.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ impl Launchpad {
182182
}
183183

184184
pub async fn track_toolchain_usage(&self, id: String, plugin: String) -> miette::Result<()> {
185-
if !is_ci() || is_test_env() || proto_core::is_offline() {
185+
if !is_ci() {
186+
// } || is_test_env() || proto_core::is_offline() {
186187
return Ok(());
187188
}
188189

0 commit comments

Comments
 (0)