Sha256: 8d9dfd7e0402930b7771bcff2361b60b2871da5544ace8362df056b76c91e74e
Contents?: true
Size: 865 Bytes
Versions: 4
Compression:
Stored size: 865 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. require_relative 'active_support_logger/instrumentation' require_relative 'active_support_logger/chain' require_relative 'active_support_logger/prepend' DependencyDetection.defer do named :active_support_logger depends_on { defined?(::ActiveSupport::Logger) } executes do ::NewRelic::Agent.logger.info 'Installing ActiveSupport::Logger instrumentation' if use_prepend? # the only method currently instrumented is a class method prepend_instrument ::ActiveSupport::Logger.singleton_class, NewRelic::Agent::Instrumentation::ActiveSupportLogger::Prepend else chain_instrument NewRelic::Agent::Instrumentation::ActiveSupportLogger::Chain end end end
Version data entries
4 entries across 4 versions & 1 rubygems