Method: NewRelic::Agent::Transaction#record_exception
- Defined in:
- lib/new_relic/agent/transaction.rb
permalink #record_exception(exception, options, error_recorded) ⇒ Object
770 771 772 773 774 775 776 777 778 |
# File 'lib/new_relic/agent/transaction.rb', line 770 def record_exception(exception, , error_recorded) [:uri] ||= request_path if request_path [:port] = request_port if request_port [:metric] = best_name [:attributes] = @attributes span_id = .delete(:span_id) !!agent.error_collector.notice_error(exception, , span_id) || error_recorded end |