Sha256: 8717d41f6032b80d67884c4bdd93ee5db69296fb7b962dafad3f39dcf0516557

Contents?: true

Size: 878 Bytes

Versions: 12

Compression:

Stored size: 878 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_relative 'active_support_broadcast_logger/instrumentation'
require_relative 'active_support_broadcast_logger/chain'
require_relative 'active_support_broadcast_logger/prepend'

DependencyDetection.defer do
  named :'active_support_broadcast_logger'

  depends_on { defined?(ActiveSupport::BroadcastLogger) }

  executes do
    NewRelic::Agent.logger.info('Installing ActiveSupport::BroadcastLogger instrumentation')

    if use_prepend?
      prepend_instrument ActiveSupport::BroadcastLogger, NewRelic::Agent::Instrumentation::ActiveSupportBroadcastLogger::Prepend
    else
      chain_instrument NewRelic::Agent::Instrumentation::ActiveSupportBroadcastLogger::Chain
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
newrelic_rpm-9.14.0 lib/new_relic/agent/instrumentation/active_support_broadcast_logger.rb
newrelic_rpm-9.13.0 lib/new_relic/agent/instrumentation/active_support_broadcast_logger.rb
newrelic_rpm-9.12.0 lib/new_relic/agent/instrumentation/active_support_broadcast_logger.rb
newrelic_rpm-9.11.0 lib/new_relic/agent/instrumentation/active_support_broadcast_logger.rb
newrelic_rpm-9.10.2 lib/new_relic/agent/instrumentation/active_support_broadcast_logger.rb
newrelic_rpm-9.10.1 lib/new_relic/agent/instrumentation/active_support_broadcast_logger.rb
newrelic_rpm-9.10.0 lib/new_relic/agent/instrumentation/active_support_broadcast_logger.rb
newrelic_rpm-9.9.0 lib/new_relic/agent/instrumentation/active_support_broadcast_logger.rb
newrelic_rpm-9.8.0 lib/new_relic/agent/instrumentation/active_support_broadcast_logger.rb
newrelic_rpm-9.7.1 lib/new_relic/agent/instrumentation/active_support_broadcast_logger.rb
newrelic_rpm-9.7.0 lib/new_relic/agent/instrumentation/active_support_broadcast_logger.rb
newrelic_rpm-9.6.0 lib/new_relic/agent/instrumentation/active_support_broadcast_logger.rb