Class: Datadog::AllSampler
Overview
\AllSampler samples all the traces.
Instance Method Summary collapse
Instance Method Details
#sample!(span) ⇒ Object
29 30 31 |
# File 'lib/ddtrace/sampler.rb', line 29 def sample!(span) span.sampled = true end |
#sample?(span) ⇒ Boolean
25 26 27 |
# File 'lib/ddtrace/sampler.rb', line 25 def sample?(span) true end |
#sample_rate(*_) ⇒ Object
33 34 35 |
# File 'lib/ddtrace/sampler.rb', line 33 def sample_rate(*_) 1.0 end |