Skip to content

Commit

Permalink
Merge pull request #14647 from MikeMcQuaid/report_influxdb_default
Browse files Browse the repository at this point in the history
analytics: report to InfluxDB by default.
  • Loading branch information
MikeMcQuaid authored Feb 15, 2023
2 parents dbd9f72 + 769a8c5 commit e42cae1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion Library/Homebrew/test/utils/analytics_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@
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)
Expand Down
2 changes: 0 additions & 2 deletions Library/Homebrew/utils/analytics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ def report_google(type, metadata = {})
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
Expand Down

0 comments on commit e42cae1

Please sign in to comment.