lib/opentelemetry.rb in opentelemetry-api-0.13.0 vs lib/opentelemetry.rb in opentelemetry-api-0.14.0

- old
+ new

@@ -20,11 +20,12 @@ # # The OpenTelemetry module provides global accessors for telemetry objects. module OpenTelemetry extend self - attr_writer :tracer_provider, :meter_provider, :baggage, :logger, :error_handler + attr_writer :tracer_provider, :meter_provider, :propagation, :baggage, + :logger, :error_handler # @return [Object, Logger] configured Logger or a default STDOUT Logger. def logger @logger ||= Logger.new(STDOUT, level: ENV['OTEL_LOG_LEVEL'] || Logger::INFO) end @@ -66,10 +67,13 @@ # manager. def baggage @baggage ||= Baggage::Manager.new end - # @return [Context::Propagation::Propagation] an instance of the propagation API + # @return [Context::Propagation::Propagator] a propagator instance def propagation - @propagation ||= Context::Propagation::Propagation.new + @propagation ||= Context::Propagation::Propagator.new( + Context::Propagation::NoopInjector.new, + Context::Propagation::NoopExtractor.new + ) end end