module LiebreNewRelic::Instrumentation::Consumer
Public Class Methods
included(base)
click to toggle source
# File lib/liebre_newrelic/instrumentation/consumer.rb, line 7 def self.included(base) base.class_eval do include NewRelic::Agent::Instrumentation::ControllerInstrumentation alias_method :orig_call_consumer, :call_consumer def call_consumer payload, meta NewRelic::Agent.set_transaction_name "#{klass.name}/consume" orig_call_consumer payload, meta end add_transaction_tracer :call_consumer, :category => :task end end
Public Instance Methods
call_consumer(payload, meta)
click to toggle source
# File lib/liebre_newrelic/instrumentation/consumer.rb, line 14 def call_consumer payload, meta NewRelic::Agent.set_transaction_name "#{klass.name}/consume" orig_call_consumer payload, meta end