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



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

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

#sample?(span) ⇒ Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/ddtrace/sampler.rb', line 19

def sample?(span)
  true
end