lib/new_relic/agent/instrumentation/authlogic.rb in newrelic_rpm-8.6.0 vs lib/new_relic/agent/instrumentation/authlogic.rb in newrelic_rpm-8.7.0
- old
+ new
@@ -11,9 +11,19 @@
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