diff --git a/lib/datadog/tracing/component.rb b/lib/datadog/tracing/component.rb index 252e1166ec6..f20a525131b 100644 --- a/lib/datadog/tracing/component.rb +++ b/lib/datadog/tracing/component.rb @@ -88,9 +88,9 @@ def build_sampler(settings) # The default sampler. # Used if no custom sampler is provided, or if sampling rule parsing fails. post_sampler ||= Tracing::Sampling::RuleSampler.new( - rate_limit: settings.tracing.sampling.rate_limit, - default_sample_rate: settings.tracing.sampling.default_rate - ) + rate_limit: settings.tracing.sampling.rate_limit, + default_sample_rate: settings.tracing.sampling.default_rate + ) Tracing::Sampling::PrioritySampler.new( base_sampler: Tracing::Sampling::AllSampler.new, diff --git a/spec/datadog/core/configuration/components_spec.rb b/spec/datadog/core/configuration/components_spec.rb index 011ebd11d97..d080a9d7ae4 100644 --- a/spec/datadog/core/configuration/components_spec.rb +++ b/spec/datadog/core/configuration/components_spec.rb @@ -576,7 +576,7 @@ before do allow(settings.tracing) .to receive(:sampler) - .and_return(sampler) + .and_return(sampler) end let(:sampler) { double('sampler') }