diff --git a/lib/datadog/core/configuration/settings.rb b/lib/datadog/core/configuration/settings.rb index 4d0b9bb13ad..f9e49c3d00b 100644 --- a/lib/datadog/core/configuration/settings.rb +++ b/lib/datadog/core/configuration/settings.rb @@ -927,7 +927,7 @@ def initialize(*_) # Enables reporting of information when Ruby VM crashes. option :enabled do |o| o.type :bool - o.default false + o.default true o.env 'DD_CRASHTRACKING_ENABLED' end end diff --git a/spec/datadog/core/configuration/settings_spec.rb b/spec/datadog/core/configuration/settings_spec.rb index 7c309814fce..1ad353dd737 100644 --- a/spec/datadog/core/configuration/settings_spec.rb +++ b/spec/datadog/core/configuration/settings_spec.rb @@ -2075,7 +2075,7 @@ context 'is not defined' do let(:environment) { nil } - it { is_expected.to be false } + it { is_expected.to be true } end [true, false].each do |value| @@ -2090,9 +2090,9 @@ describe '#enabled=' do it 'updates the #enabled setting' do - expect { settings.crashtracking.enabled = true } + expect { settings.crashtracking.enabled = false } .to change { settings.crashtracking.enabled } - .from(false).to(true) + .from(true).to(false) end end end