Class: Datadog::AllSampler

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

Overview

AllSampler samples all the traces.

Instance Method Summary collapse

Instance Method Details

#sample!(span) ⇒ Object


28
29
30
# File 'lib/ddtrace/sampler.rb', line 28

def sample!(span)
  span.sampled = true
end

#sample?(span) ⇒ Boolean

Returns:

  • (Boolean)

24
25
26
# File 'lib/ddtrace/sampler.rb', line 24

def sample?(span)
  true
end

#sample_rate(*_) ⇒ Object


32
33
34
# File 'lib/ddtrace/sampler.rb', line 32

def sample_rate(*_)
  1.0
end