Sha256: 2fd9def0b983f6cd5a99aab3ef78830d901471bfbfb6e146ad572caf95ad68ad

Contents?: true

Size: 385 Bytes

Versions: 7

Compression:

Stored size: 385 Bytes

Contents

DependencyDetection.defer do
  depends_on do
    defined?(AuthLogic) &&
      defined?(AuthLogic::Session) &&
      defined?(AuthLogic::Session::Base)
  end

  executes do
    NewRelic::Agent.logger.debug 'Installing AuthLogic instrumentation'
  end  
  
  executes do
    AuthLogic::Session::Base.class_eval do
      add_method_tracer :find, 'Custom/Authlogic/find'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
newrelic_rpm-3.1.2 lib/new_relic/agent/instrumentation/authlogic.rb
newrelic_rpm-3.1.2.beta2 lib/new_relic/agent/instrumentation/authlogic.rb
newrelic_rpm-3.1.2.beta1 lib/new_relic/agent/instrumentation/authlogic.rb
newrelic_rpm-3.1.1 lib/new_relic/agent/instrumentation/authlogic.rb
newrelic_rpm-3.1.1.beta3 lib/new_relic/agent/instrumentation/authlogic.rb
newrelic_rpm-3.1.1.beta2 lib/new_relic/agent/instrumentation/authlogic.rb
newrelic_rpm-3.1.1.beta1 lib/new_relic/agent/instrumentation/authlogic.rb