Class: Datadog::Tracing::Sampling::AllSampler
- Defined in:
- lib/datadog/tracing/sampling/all_sampler.rb
Overview
AllSampler samples all the traces.
Instance Method Summary collapse
Instance Method Details
#sample!(trace) ⇒ Object
14 15 16 |
# File 'lib/datadog/tracing/sampling/all_sampler.rb', line 14 def sample!(trace) trace.sampled = true end |
#sample?(_trace) ⇒ Boolean
10 11 12 |
# File 'lib/datadog/tracing/sampling/all_sampler.rb', line 10 def sample?(_trace) true end |
#sample_rate(*_) ⇒ Object
18 19 20 |
# File 'lib/datadog/tracing/sampling/all_sampler.rb', line 18 def sample_rate(*_) 1.0 end |