Refactor:Enable Datadog When DD_API_KEY is Present (#11278)
This commit is contained in:
parent
a8c3ff8c5a
commit
6f34241c35
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue