# File lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb, line 116 def install_newrelic_job_tracer Delayed::Job.class_eval do include NewRelic::Agent::Instrumentation::ControllerInstrumentation alias_method :invoke_job_without_new_relic, :invoke_job def invoke_job(*args, &block) options = { :category => NR_TRANSACTION_CATEGORY, :path => ::NewRelic::Agent::Instrumentation::DelayedJob::Naming.name_from_payload(payload_object) } perform_action_with_newrelic_trace(options) do invoke_job_without_new_relic(*args, &block) end end end end