# File lib/new_relic/agent/error_trace_aggregator.rb, line 28 def harvest! @lock.synchronize do errors = @errors @errors = [] errors end end