lib/newrelic-rake/instrument.rb in newrelic-rake-1.0.0 vs lib/newrelic-rake/instrument.rb in newrelic-rake-1.1.0
- old
+ new
@@ -1,14 +1,16 @@
+require 'new_relic/agent/method_tracer'
+
DependencyDetection.defer do
@name = :rake
depends_on do
defined?(::Rake) and not ::NewRelic::Control.instance['disable_rake']
end
executes do
- NewRelic::Agent.logger.debug 'Installing Rake instrumentation'
+ ::NewRelic::Agent.logger.info 'Installing Rake instrumentation'
end
executes do
::Rake::Task.class_eval do
include ::NewRelic::Agent::Instrumentation::ControllerInstrumentation
@@ -21,6 +23,5 @@
end
end
end
end
end
-