Refactor:Enable Datadog When DD_API_KEY is Present (#11278)

This commit is contained in:
Molly Struve 2020-11-05 11:50:32 -05:00 committed by GitHub
parent a8c3ff8c5a
commit 6f34241c35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
Datadog.configure do |c|
c.tracer env: Rails.env
c.tracer enabled: Rails.env.production?
c.tracer enabled: ENV["DD_API_KEY"].present?
c.tracer partial_flush: true
c.tracer priority_sampling: true
c.use :elasticsearch