Method: NewRelic::Agent::Transaction#record_exception

Defined in:
lib/new_relic/agent/transaction.rb

#record_exception(exception, options, error_recorded) ⇒ Object

[View source]

770
771
772
773
774
775
776
777
778
# File 'lib/new_relic/agent/transaction.rb', line 770

def record_exception(exception, options, error_recorded)
  options[:uri] ||= request_path if request_path
  options[:port] = request_port if request_port
  options[:metric] = best_name
  options[:attributes] = @attributes

  span_id = options.delete(:span_id)
  !!agent.error_collector.notice_error(exception, options, span_id) || error_recorded
end