Sha256: 84b32a19f27ad5ddeecc76741bc23f214a6ad26b62d43b5bb61155579dac9048
Contents?: true
Size: 934 Bytes
Versions: 2
Compression:
Stored size: 934 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 ) ::NewRelic::Agent.record_metric("Supportability/Deprecated/Authlogic", 1) 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.12.0 | lib/new_relic/agent/instrumentation/authlogic.rb |
newrelic_rpm-8.11.0 | lib/new_relic/agent/instrumentation/authlogic.rb |