module LightStep::Propagation

Constants

PROPAGATOR_MAP

Public Class Methods

[](propagator_name) click to toggle source

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

@param [Symbol, String] propagator_name One of :lightstep or :b3 @return [Propagator]

# File lib/lightstep/propagation.rb, line 19
def [](propagator_name)
  klass = PROPAGATOR_MAP[propagator_name.to_sym] || LightStepPropagator
  klass.new
end