class Datadog::Sampler

Sampler performs client-side trace sampling.

Public Instance Methods

sample!(_span) click to toggle source
# File lib/ddtrace/sampler.rb, line 13
def sample!(_span)
  raise NotImplementedError, 'Samplers must implement the #sample! method'
end
sample?(_span) click to toggle source
# File lib/ddtrace/sampler.rb, line 9
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 17
def sample_rate(span)
  raise NotImplementedError, 'Samplers must implement the #sample_rate method'
end