Sha256: 359d8c978fb9b912f1f048c6b4b8d3e2cc25d8b8a2e7fb59bd60ddb69493d582

Contents?: true

Size: 638 Bytes

Versions: 17

Compression:

Stored size: 638 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

module NewRelic
  module Agent
    module Instrumentation
      module ActiveSupportLogger
        # Mark @skip_instrumenting on any broadcasted loggers to instrument Rails.logger only
        def broadcast_with_tracing(logger)
          NewRelic::Agent::Instrumentation::Logger.mark_skip_instrumenting(logger)
          yield
        rescue => error
          NewRelic::Agent.notice_error(error)
          raise
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
newrelic_rpm-9.4.2 lib/new_relic/agent/instrumentation/active_support_logger/instrumentation.rb
newrelic_rpm-9.4.1 lib/new_relic/agent/instrumentation/active_support_logger/instrumentation.rb
newrelic_rpm-9.4.0 lib/new_relic/agent/instrumentation/active_support_logger/instrumentation.rb
newrelic_rpm-9.3.1 lib/new_relic/agent/instrumentation/active_support_logger/instrumentation.rb
newrelic_rpm-9.3.0 lib/new_relic/agent/instrumentation/active_support_logger/instrumentation.rb
newrelic_rpm-9.2.2 lib/new_relic/agent/instrumentation/active_support_logger/instrumentation.rb
newrelic_rpm-9.2.1 lib/new_relic/agent/instrumentation/active_support_logger/instrumentation.rb
newrelic_rpm-9.2.0 lib/new_relic/agent/instrumentation/active_support_logger/instrumentation.rb
newrelic_rpm-9.1.0 lib/new_relic/agent/instrumentation/active_support_logger/instrumentation.rb
newrelic_rpm-9.0.0 lib/new_relic/agent/instrumentation/active_support_logger/instrumentation.rb
newrelic_rpm-8.16.0 lib/new_relic/agent/instrumentation/active_support_logger/instrumentation.rb
newrelic_rpm-8.15.0 lib/new_relic/agent/instrumentation/active_support_logger/instrumentation.rb
newrelic_rpm-8.14.0 lib/new_relic/agent/instrumentation/active_support_logger/instrumentation.rb
newrelic_rpm-8.13.1 lib/new_relic/agent/instrumentation/active_support_logger/instrumentation.rb
newrelic_rpm-8.13.0 lib/new_relic/agent/instrumentation/active_support_logger/instrumentation.rb
newrelic_rpm-8.12.0 lib/new_relic/agent/instrumentation/active_support_logger/instrumentation.rb
newrelic_rpm-8.11.0 lib/new_relic/agent/instrumentation/active_support_logger/instrumentation.rb