module NewRelic::Agent::Instrumentation::ConcurrentRuby::ErrorPrepend

Public Class Methods

new(*args) click to toggle source

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

Calls superclass method
# 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