Module: NewRelic::Agent::Instrumentation::Bunny::Consumer
- Includes:
- NewRelic::Agent::Instrumentation::Bunny
- Included in:
- Bunny::Prepend::Consumer
- Defined in:
- lib/new_relic/agent/instrumentation/bunny/instrumentation.rb
Constant Summary
Constants included from NewRelic::Agent::Instrumentation::Bunny
DEFAULT_NAME, DEFAULT_TYPE, LIBRARY, SLASH
Instance Method Summary collapse
Methods included from NewRelic::Agent::Instrumentation::Bunny
Instance Method Details
#call_with_tracing(*args) ⇒ Object
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
# File 'lib/new_relic/agent/instrumentation/bunny/instrumentation.rb', line 131 def call_with_tracing(*args) delivery_info, , _ = args queue_name = queue.respond_to?(:name) ? queue.name : queue NewRelic::Agent::Messaging.wrap_amqp_consume_transaction( library: LIBRARY, destination_name: exchange_name(delivery_info.exchange), delivery_info: delivery_info, message_properties: , exchange_type: exchange_type(delivery_info, channel), queue_name: queue_name ) do yield end end |