Method: NewRelic::Agent::Transaction.notice_error

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

.notice_error(e, options = {}) ⇒ Object

See NewRelic::Agent.notice_error for options and commentary

[View source]

142
143
144
145
146
147
148
# File 'lib/new_relic/agent/transaction.rb', line 142

def self.notice_error(e, options = {})
  if txn = Tracer.current_transaction
    txn.notice_error(e, options)
  elsif NewRelic::Agent.instance
    NewRelic::Agent.instance.error_collector.notice_error(e, options)
  end
end