module OpenTelemetry::Instrumentation::Bunny::Patches::Consumer

The Consumer module contains the instrumentation patch for the Consumer class

Public Instance Methods

call(delivery_info, properties, payload) click to toggle source
Calls superclass method
# File lib/opentelemetry/instrumentation/bunny/patches/consumer.rb, line 13
def call(delivery_info, properties, payload)
  OpenTelemetry::Instrumentation::Bunny::PatchHelpers.with_process_span(queue.channel, tracer, delivery_info, properties) do
    super
  end
end

Private Instance Methods

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