class Datadog::Sampler

Sampler performs client-side trace sampling.

Public Instance Methods

sample!(_span) click to toggle source
# File lib/ddtrace/sampler.rb, line 14
def sample!(_span)
  raise NotImplementedError, 'Samplers must implement the #sample! method'
end
sample?(_span) click to toggle source
# File lib/ddtrace/sampler.rb, line 10
def sample?(_span)
  raise NotImplementedError, 'Samplers must implement the #sample? method'
end
sample_rate(span) click to toggle source
# File lib/ddtrace/sampler.rb, line 18
def sample_rate(span)
  raise NotImplementedError, 'Samplers must implement the #sample_rate method'
end