lib/tobox/plugins/datadog/configuration.rb in tobox-0.6.1 vs lib/tobox/plugins/datadog/configuration.rb in tobox-0.7.0
- old
+ new
@@ -11,11 +11,11 @@
module Configuration
class Settings < Contrib::Configuration::Settings
if Gem::Version.new(DDTrace::VERSION::STRING) >= Gem::Version.new("1.13.0")
option :enabled do |o|
o.type :bool
- o.env "DD_TOBOX_SIDEKIQ_ENABLED"
+ o.env "DD_TOBOX_ENABLED"
o.default true
end
option :analytics_enabled do |o|
o.type :bool
@@ -28,10 +28,10 @@
o.env "DD_TRACE_TOBOX_ANALYTICS_SAMPLE_RATE"
o.default 1.0
end
else
option :enabled do |o|
- o.default { env_to_bool("DD_TOBOX_SIDEKIQ_ENABLED", true) }
+ o.default { env_to_bool("DD_TOBOX_ENABLED", true) }
o.lazy
end
option :analytics_enabled do |o|
o.default { env_to_bool("DD_TOBOX_ANALYTICS_ENABLED", false) }