lib/opentelemetry/instrumentation/sidekiq/patches/processor.rb in opentelemetry-instrumentation-sidekiq-0.21.0 vs lib/opentelemetry/instrumentation/sidekiq/patches/processor.rb in opentelemetry-instrumentation-sidekiq-0.21.1

- old
+ new

@@ -11,23 +11,23 @@ # The Processor module contains the instrumentation for the process_one method module Processor private def process_one - if config[:trace_processor_process_one] + if instrumentation_config[:trace_processor_process_one] attributes = {} - attributes['peer.service'] = config[:peer_service] if config[:peer_service] + attributes['peer.service'] = instrumentation_config[:peer_service] if instrumentation_config[:peer_service] tracer.in_span('Sidekiq::Processor#process_one', attributes: attributes) { super } else OpenTelemetry::Common::Utilities.untraced { super } end end def tracer Sidekiq::Instrumentation.instance.tracer end - def config + def instrumentation_config Sidekiq::Instrumentation.instance.config end end end end