Sha256: af37c6358db97ec1c5db6121f539372e28a771269bf4dba636ef4359eec42455
Contents?: true
Size: 769 Bytes
Versions: 28
Compression:
Stored size: 769 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 require 'new_relic/agent/instrumentation/active_storage_subscriber' DependencyDetection.defer do named :active_storage depends_on do !NewRelic::Agent.config[:disable_active_storage] end depends_on do defined?(ActiveStorage) && !NewRelic::Agent::Instrumentation::ActiveStorageSubscriber.subscribed? end executes do NewRelic::Agent.logger.info('Installing ActiveStorage instrumentation') end executes do ActiveSupport::Notifications.subscribe(/\.active_storage$/, NewRelic::Agent::Instrumentation::ActiveStorageSubscriber.new) end end
Version data entries
28 entries across 28 versions & 1 rubygems