lib/ddtrace/tracer.rb in ddtrace-0.31.1 vs lib/ddtrace/tracer.rb in ddtrace-0.32.0
- old
+ new
@@ -404,10 +404,10 @@
@sampler = if base_sampler.is_a?(PrioritySampler)
base_sampler
else
PrioritySampler.new(
base_sampler: base_sampler,
- post_sampler: Datadog::RateByServiceSampler.new(1.0, env: proc { tags[:env] })
+ post_sampler: Sampling::RuleSampler.new
)
end
end
def deactivate_priority_sampling!(base_sampler = nil)