Method: NewRelic::Agent#ignore_transaction

Defined in:
lib/new_relic/agent.rb

#ignore_transactionObject

This method disables the recording of the current transaction. No metrics, traced errors, transaction traces, Insights events, slow SQL traces, or RUM injection will happen for this transaction.


460
461
462
463
464
# File 'lib/new_relic/agent.rb', line 460

def ignore_transaction
  record_api_supportability_metric(:ignore_transaction)
  txn = NewRelic::Agent::Transaction.tl_current
  txn.ignore! if txn
end