lib/new_relic/agent/instrumentation/authlogic.rb in newrelic_rpm-3.6.5.130 vs lib/new_relic/agent/instrumentation/authlogic.rb in newrelic_rpm-3.6.6.147

- old
+ new

@@ -2,20 +2,20 @@ # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. DependencyDetection.defer do @name = :authlogic - + depends_on do defined?(AuthLogic) && defined?(AuthLogic::Session) && defined?(AuthLogic::Session::Base) end executes do ::NewRelic::Agent.logger.info 'Installing AuthLogic instrumentation' - end - + end + executes do AuthLogic::Session::Base.class_eval do add_method_tracer :find, 'Custom/Authlogic/find' end end