Sha256: 5e4a92d9a7462979b118c4769134db695782cfc2ccfb540a6161c0691e4a85fb
Contents?: true
Size: 639 Bytes
Versions: 2
Compression:
Stored size: 639 Bytes
Contents
require 'new_relic/agent/instrumentation/controller_instrumentation' DependencyDetection.defer do depends_on do !NewRelic::Control.instance['disable_dj'] end depends_on do defined?(::Delayed) && defined?(::Delayed::Job) end executes do Delayed::Job.class_eval do include NewRelic::Agent::Instrumentation::ControllerInstrumentation if self.instance_methods.include?('name') add_transaction_tracer "invoke_job", :category => 'OtherTransaction/DelayedJob', :path => '#{self.name}' else add_transaction_tracer "invoke_job", :category => 'OtherTransaction/DelayedJob' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
newrelic_rpm-2.13.6.beta2 | lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb |
newrelic_rpm-2.13.6.beta1 | lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb |