From 769a8c500198db83503338a942f4e84e8749a6ba Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 15 Feb 2023 17:27:02 +0000 Subject: [PATCH] analytics: report to InfluxDB by default. Now that this is ready: let's roll it out to everyone in 4.0.0. --- Library/Homebrew/test/utils/analytics_spec.rb | 1 - Library/Homebrew/utils/analytics.rb | 2 -- 2 files changed, 3 deletions(-) diff --git a/Library/Homebrew/test/utils/analytics_spec.rb b/Library/Homebrew/test/utils/analytics_spec.rb index 6fca5195b8..f194e60d8e 100644 --- a/Library/Homebrew/test/utils/analytics_spec.rb +++ b/Library/Homebrew/test/utils/analytics_spec.rb @@ -162,7 +162,6 @@ describe Utils::Analytics do ENV.delete("HOMEBREW_NO_ANALYTICS_THIS_RUN") ENV.delete("HOMEBREW_NO_ANALYTICS") ENV["HOMEBREW_ANALYTICS_DEBUG"] = "true" - ENV["HOMEBREW_ANALYTICS_ENABLE_INFLUX"] = "true" ENV["HOMEBREW_DEVELOPER"] = "1" expect(described_class).to receive(:deferred_curl).once described_class.report_influx(:install, action, true, developer: true, CI: true) diff --git a/Library/Homebrew/utils/analytics.rb b/Library/Homebrew/utils/analytics.rb index c429f8ecbe..90f3fc3526 100644 --- a/Library/Homebrew/utils/analytics.rb +++ b/Library/Homebrew/utils/analytics.rb @@ -76,8 +76,6 @@ module Utils additional_tags: T::Hash[Symbol, T.untyped]).void } def report_influx(measurement, package_and_options, on_request, additional_tags = {}) - return unless ENV["HOMEBREW_ANALYTICS_ENABLE_INFLUX"] - # Append general information to device information tags = additional_tags.merge(package_and_options: package_and_options, on_request: !on_request.nil?) .compact_blank