Sha256: 5faed88fc013e822e1f1010dc4bb1a2eeb471fcf58dd959b2a6f0175c72be393
Contents?: true
Size: 855 Bytes
Versions: 2
Compression:
Stored size: 855 Bytes
Contents
# This file is distributed under New Relic's license terms. # See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. # frozen_string_literal: true 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') deprecation_msg = 'The instrumentation for Authlogic is deprecated. ' \ 'It will be removed in version 9.0.0.' \ ::NewRelic::Agent.logger.log_once( :warn, :deprecated_authlogic, deprecation_msg ) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
newrelic_rpm-8.13.1 | lib/new_relic/agent/instrumentation/authlogic.rb |
newrelic_rpm-8.13.0 | lib/new_relic/agent/instrumentation/authlogic.rb |