# File lib/new_relic/agent/instrumentation/rake.rb, line 85 def self.instrument_execute(task) return if task.instance_variable_get(:@__newrelic_instrumented_execute) task.instance_variable_set(:@__newrelic_instrumented_execute, true) task.instance_eval do def execute(*args, &block) NewRelic::Agent::MethodTracer.trace_execution_scoped("Rake/execute/#{self.name}") do super end end end instrument_execute_on_prereqs(task) end