Sha256: 22c46049e3896dd06eb4ae83f0f2a99433d06ac29b10b6070740d65a0937917d
Contents?: true
Size: 584 Bytes
Versions: 3
Compression:
Stored size: 584 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::Agent::Instrumentation module ActiveSupportBroadcastLogger def record_one_broadcast_with_new_relic(*args) broadcasts[1..-1].each { |broadcasted_logger| broadcasted_logger.instance_variable_set(:@skip_instrumenting, true) } yield broadcasts.each { |broadcasted_logger| broadcasted_logger.instance_variable_set(:@skip_instrumenting, false) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems