Method: NewRelic::Agent::TransactionSampler#harvest!
- Defined in:
- lib/new_relic/agent/transaction_sampler.rb
permalink #harvest! ⇒ Object
Gather transaction traces that we’d like to transmit to the server.
69 70 71 72 73 74 75 76 77 |
# File 'lib/new_relic/agent/transaction_sampler.rb', line 69 def harvest! return NewRelic::EMPTY_ARRAY unless enabled? samples = @samples_lock.synchronize do @last_sample = nil harvest_from_sample_buffers end prepare_samples(samples) end |