class Datadog::Tracing::Component::SamplerDelegatorComponent
Swapping samplers happens during Dynamic Configuration.
the sampler instance used by the tracer.
Sampler wrapper component, to allow for hot-swapping
def initialize(sampler)
def initialize(sampler) @sampler = sampler end
def sample!(trace)
def sample!(trace) @sampler.sample!(trace) end
def update(*args, **kwargs)
def update(*args, **kwargs) return unless @sampler.respond_to?(:update) @sampler.update(*args, **kwargs) end