Method: NewRelic::Agent::TransactionTimeAggregator.transaction_stop

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

.transaction_stop(timestamp = Process.clock_gettime(Process::CLOCK_REALTIME), starting_thread_id = current_thread) ⇒ Object

[View source]

35
36
37
38
39
40
# File 'lib/new_relic/agent/transaction_time_aggregator.rb', line 35

def transaction_stop(timestamp = Process.clock_gettime(Process::CLOCK_REALTIME), starting_thread_id = current_thread)
  @lock.synchronize do
    record_elapsed_transaction_time_until(timestamp, starting_thread_id)
    set_transaction_start_time(nil, starting_thread_id)
  end
end