module NewRelic::Agent::Instrumentation::Rake::Chain
Public Class Methods
Source
# File lib/new_relic/agent/instrumentation/rake/chain.rb, line 8 def self.instrument! ::Rake::Task.class_eval do include NewRelic::Agent::Instrumentation::Rake::Tracer alias_method(:invoke_without_newrelic, :invoke) def invoke(*args) invoke_with_newrelic_tracing(*args) { invoke_without_newrelic(*args) } end end end
Public Instance Methods
Source
# File lib/new_relic/agent/instrumentation/rake/chain.rb, line 13 def invoke(*args) invoke_with_newrelic_tracing(*args) { invoke_without_newrelic(*args) } end