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