module OpenTelemetry::Instrumentation::Sidekiq::Patches::Processor
The Processor
module contains the instrumentation for the process_one
method
Private Instance Methods
config()
click to toggle source
# File lib/opentelemetry/instrumentation/sidekiq/patches/processor.rb, line 29 def config Sidekiq::Instrumentation.instance.config end
process_one()
click to toggle source
Calls superclass method
# File lib/opentelemetry/instrumentation/sidekiq/patches/processor.rb, line 15 def process_one if config[:trace_processor_process_one] attributes = {} attributes['peer.service'] = config[:peer_service] if config[:peer_service] tracer.in_span('Sidekiq::Processor#process_one', attributes: attributes) { super } else OpenTelemetry::Common::Utilities.untraced { super } end end
tracer()
click to toggle source
# File lib/opentelemetry/instrumentation/sidekiq/patches/processor.rb, line 25 def tracer Sidekiq::Instrumentation.instance.tracer end