Method: NewRelic::Agent::ErrorTraceAggregator#harvest!
- Defined in:
- lib/new_relic/agent/error_trace_aggregator.rb
permalink #harvest! ⇒ Object
Get the errors currently queued up. Unsent errors are left over from a previous unsuccessful attempt to send them to the server.
28 29 30 31 32 33 34 |
# File 'lib/new_relic/agent/error_trace_aggregator.rb', line 28 def harvest! @lock.synchronize do errors = @errors @errors = [] errors end end |