Class: Datadog::Sampler
- Inherits:
-
Object
show all
- Defined in:
- lib/ddtrace/sampler.rb
Overview
\Sampler performs client-side trace sampling.
Instance Method Summary
collapse
Instance Method Details
#sample!(_span) ⇒ Object
14
15
16
|
# File 'lib/ddtrace/sampler.rb', line 14
def sample!(_span)
raise NotImplementedError, 'Samplers must implement the #sample! method'
end
|
#sample?(_span) ⇒ Boolean
10
11
12
|
# File 'lib/ddtrace/sampler.rb', line 10
def sample?(_span)
raise NotImplementedError, 'Samplers must implement the #sample? method'
end
|
#sample_rate(span) ⇒ Object
18
19
20
|
# File 'lib/ddtrace/sampler.rb', line 18
def sample_rate(span)
raise NotImplementedError, 'Samplers must implement the #sample_rate method'
end
|