Module: NewRelic::Agent::Instrumentation::ConcurrentRuby::ErrorPrepend

Defined in:
lib/new_relic/agent/instrumentation/concurrent_ruby/prepend.rb

Instance Method Summary collapse

Instance Method Details

#initialize(*args) ⇒ Object

Uses args.last to record the error because the methods that this will be prepended to look like: initialize(reason) & initialize(value, reason)



21
22
23
24
# File 'lib/new_relic/agent/instrumentation/concurrent_ruby/prepend.rb', line 21

def initialize(*args)
  NewRelic::Agent.notice_error(args.last) if args.last.is_a?(Exception)
  super
end