Method: OneApm::TransactionState#reset
- Defined in:
- lib/one_apm/transaction/transaction_state.rb
#reset(transaction = nil) ⇒ Object
This starts the timer for the transaction.
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/one_apm/transaction/transaction_state.rb', line 40 def reset(transaction=nil) # We purposefully don't reset @untraced, @record_tt and @record_sql # since those are managed by OneApm::Manager.disable_* calls explicitly # and (more importantly) outside the scope of a transaction @timings = nil @request = nil @current_transaction = transaction @traced_method_stack.clear @is_cross_app_caller = false @client_cross_app_id = nil @referring_transaction_info = nil @transaction_sample_builder = nil @sql_sampler_transaction_data = nil @busy_entries = 0 end |