Module: OpenTelemetry::Instrumentation::Bunny::Patches::ReaderLoop

Defined in:
lib/opentelemetry/instrumentation/bunny/patches/reader_loop.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#run_onceObject



13
14
15
16
17
18
# 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