Module: LightStep::Propagation

Defined in:
lib/lightstep/propagation.rb,
lib/lightstep/propagation/b3_propagator.rb,
lib/lightstep/propagation/lightstep_propagator.rb

Defined Under Namespace

Classes: B3Propagator, LightStepPropagator

Constant Summary collapse

PROPAGATOR_MAP =
{
  lightstep: LightStepPropagator,
  b3: B3Propagator
}

Class Method Summary collapse

Class Method Details

.[](propagator_name) ⇒ Propagator

Constructs a propagator instance from the given propagator name. If the name is unknown returns the LightStepPropagator as a default



19
20
21
22
# File 'lib/lightstep/propagation.rb', line 19

def [](propagator_name)
  klass = PROPAGATOR_MAP[propagator_name.to_sym] || LightStepPropagator
  klass.new
end