Class: Datadog::Sampler

Inherits:
Object
  • Object
show all
Defined in:
lib/ddtrace/sampler.rb

Overview

Sampler performs client-side trace sampling.

Direct Known Subclasses

AllSampler, RateByServiceSampler, RateSampler

Instance Method Summary collapse

Instance Method Details

#sample!(_span) ⇒ Object

Raises:



12
13
14
# File 'lib/ddtrace/sampler.rb', line 12

def sample!(_span)
  raise NotImplementedError, 'Samplers must implement the #sample! method'
end

#sample?(_span) ⇒ Boolean

Returns:

Raises:



8
9
10
# File 'lib/ddtrace/sampler.rb', line 8

def sample?(_span)
  raise NotImplementedError, 'Samplers must implement the #sample? method'
end