Module: NewRelic::Agent::Instrumentation::ActiveSupportLogger

Included in:
Prepend
Defined in:
lib/new_relic/agent/instrumentation/active_support_logger/chain.rb,
lib/new_relic/agent/instrumentation/active_support_logger/instrumentation.rb

Defined Under Namespace

Modules: Chain, Prepend

Instance Method Summary collapse

Instance Method Details

#broadcast_with_tracing(logger) ⇒ Object

Mark @skip_instrumenting on any broadcasted loggers to instrument Rails.logger only



10
11
12
13
14
15
16
# File 'lib/new_relic/agent/instrumentation/active_support_logger/instrumentation.rb', line 10

def broadcast_with_tracing(logger)
  NewRelic::Agent::Instrumentation::Logger.mark_skip_instrumenting(logger)
  yield
rescue => error
  NewRelic::Agent.notice_error(error)
  raise
end