module OpenTelemetry::Instrumentation::Bunny::Patches::ReaderLoop

The ReaderLoop module contains the instrumentation patch the ReaderLoop#run_once method

Public Instance Methods

run_once() click to toggle source
Calls superclass method
# File lib/opentelemetry/instrumentation/bunny/patches/reader_loop.rb, line 13
def run_once
  attributes = OpenTelemetry::Instrumentation::Bunny::PatchHelpers.basic_attributes(nil, @transport, '', nil)
  tracer.in_span('Bunny::ReaderLoop#run_once', attributes: attributes, kind: :consumer) do
    super
  end
end

Private Instance Methods

tracer() click to toggle source
# File lib/opentelemetry/instrumentation/bunny/patches/reader_loop.rb, line 22
def tracer
  Bunny::Instrumentation.instance.tracer
end