Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
marcotc committed Dec 12, 2023
1 parent 57e1fcd commit 09feff6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/datadog/tracing/component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion spec/datadog/core/configuration/components_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@
before do
allow(settings.tracing)
.to receive(:sampler)
.and_return(sampler)
.and_return(sampler)
end

let(:sampler) { double('sampler') }
Expand Down

0 comments on commit 09feff6

Please sign in to comment.