Sha256: 0f317d1c19dbf13f7c4f7c39884eaffc89b239dcaaee87ed86ad1626510e881b

Contents?: true

Size: 609 Bytes

Versions: 15

Compression:

Stored size: 609 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/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

  executes do
    Authlogic::Session::Base.class_eval do
      class << self
        add_method_tracer :find, 'Custom/Authlogic/find'
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
newrelic_rpm-8.6.0 lib/new_relic/agent/instrumentation/authlogic.rb
newrelic_rpm-8.5.0 lib/new_relic/agent/instrumentation/authlogic.rb
newrelic_rpm-8.4.0 lib/new_relic/agent/instrumentation/authlogic.rb
newrelic_rpm-8.3.0 lib/new_relic/agent/instrumentation/authlogic.rb
newrelic_rpm-8.2.0 lib/new_relic/agent/instrumentation/authlogic.rb
newrelic_rpm-8.1.0 lib/new_relic/agent/instrumentation/authlogic.rb
newrelic_rpm-8.0.0 lib/new_relic/agent/instrumentation/authlogic.rb
newrelic_rpm-7.2.0 lib/new_relic/agent/instrumentation/authlogic.rb
newrelic_rpm-7.1.0 lib/new_relic/agent/instrumentation/authlogic.rb
newrelic_rpm-7.0.0 lib/new_relic/agent/instrumentation/authlogic.rb
newrelic_rpm-6.15.0 lib/new_relic/agent/instrumentation/authlogic.rb
newrelic_rpm-6.14.0 lib/new_relic/agent/instrumentation/authlogic.rb
newrelic_rpm-6.13.1 lib/new_relic/agent/instrumentation/authlogic.rb
newrelic_rpm-6.13.0 lib/new_relic/agent/instrumentation/authlogic.rb
newrelic_rpm-6.12.0.367 lib/new_relic/agent/instrumentation/authlogic.rb