module Resque::Plugins::NewRelicInstrumentation

Public Instance Methods

around_perform_with_monitoring(*args) { |*args| ... } click to toggle source
# File lib/new_relic/agent/instrumentation/resque.rb, line 30
def around_perform_with_monitoring(*args)
  begin
    perform_action_with_newrelic_trace(
      :name => 'perform',
      :class_name => self.name,
      :category => 'OtherTransaction/ResqueJob') do

      NewRelic::Agent::Transaction.merge_untrusted_agent_attributes(args, :'job.resque.args',
        NewRelic::Agent::AttributeFilter::DST_NONE)

      yield(*args)
    end
  ensure
    NewRelic::Agent.agent.flush_pipe_data
  end
end