module NewRelic::Agent::Instrumentation::Resque::Chain

Public Class Methods

instrument!() click to toggle source
# File lib/new_relic/agent/instrumentation/resque/chain.rb, line 8
def self.instrument!
  ::Resque::Job.class_eval do
    include NewRelic::Agent::Instrumentation::Resque

    alias_method(:perform_without_instrumentation, :perform)

    def perform
      with_tracing { perform_without_instrumentation }
    end
  end
end

Public Instance Methods

perform() click to toggle source
# File lib/new_relic/agent/instrumentation/resque/chain.rb, line 14
def perform
  with_tracing { perform_without_instrumentation }
end