Sha256: 5ab3e6737e439bb53fa9f178b70414f0372e1c7688e802a8c1a1de3241119c3f

Contents?: true

Size: 686 Bytes

Versions: 12

Compression:

Stored size: 686 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 'new_relic/agent/instrumentation/active_storage_subscriber'

DependencyDetection.defer do
  named :active_storage

  depends_on do
    defined?(::ActiveStorage) &&
      !NewRelic::Agent::Instrumentation::ActiveStorageSubscriber.subscribed?
  end

  executes do
    ::NewRelic::Agent.logger.info 'Installing ActiveStorage 5 instrumentation'
  end

  executes do
    ActiveSupport::Notifications.subscribe(/\.active_storage$/,
      NewRelic::Agent::Instrumentation::ActiveStorageSubscriber.new)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
newrelic_rpm-8.3.0 lib/new_relic/agent/instrumentation/active_storage.rb
newrelic_rpm-8.2.0 lib/new_relic/agent/instrumentation/active_storage.rb
newrelic_rpm-8.1.0 lib/new_relic/agent/instrumentation/active_storage.rb
newrelic_rpm-8.0.0 lib/new_relic/agent/instrumentation/active_storage.rb
newrelic_rpm-7.2.0 lib/new_relic/agent/instrumentation/active_storage.rb
newrelic_rpm-7.1.0 lib/new_relic/agent/instrumentation/active_storage.rb
newrelic_rpm-7.0.0 lib/new_relic/agent/instrumentation/active_storage.rb
newrelic_rpm-6.15.0 lib/new_relic/agent/instrumentation/active_storage.rb
newrelic_rpm-6.14.0 lib/new_relic/agent/instrumentation/active_storage.rb
newrelic_rpm-6.13.1 lib/new_relic/agent/instrumentation/active_storage.rb
newrelic_rpm-6.13.0 lib/new_relic/agent/instrumentation/active_storage.rb
newrelic_rpm-6.12.0.367 lib/new_relic/agent/instrumentation/active_storage.rb