Class: Mmtrix::Agent::Transaction
- Inherits:
-
Object
- Object
- Mmtrix::Agent::Transaction
- Defined in:
- lib/mmtrix/agent/transaction.rb
Overview
This class represents a single transaction (usually mapping to one web request or background job invocation) instrumented by the Ruby agent.
Class Method Summary collapse
-
.recording_web_transaction? ⇒ Boolean
Returns truthy if the current in-progress transaction is considered a a web transaction (as opposed to, e.g., a background transaction).
Class Method Details
.recording_web_transaction? ⇒ Boolean
Returns truthy if the current in-progress transaction is considered a a web transaction (as opposed to, e.g., a background transaction).
204 205 206 207 |
# File 'lib/mmtrix/agent/transaction.rb', line 204 def self.recording_web_transaction? #THREAD_LOCAL_ACCESS txn = tl_current txn && txn.recording_web_transaction? end |