Class: StackifyRubyAPM::Instrumenter::TransactionInfo Private
- Inherits:
-
Object
- Object
- StackifyRubyAPM::Instrumenter::TransactionInfo
- Defined in:
- lib/stackify_apm/instrumenter.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Transaction Info class
Instance Method Summary collapse
- #current ⇒ Object private
- #current=(transaction) ⇒ Object private
-
#initialize ⇒ TransactionInfo
constructor
private
A new instance of TransactionInfo.
Constructor Details
#initialize ⇒ TransactionInfo
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of TransactionInfo.
16 17 18 |
# File 'lib/stackify_apm/instrumenter.rb', line 16 def initialize self.current = nil end |
Instance Method Details
#current ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20 21 22 |
# File 'lib/stackify_apm/instrumenter.rb', line 20 def current Thread.current[KEY] end |
#current=(transaction) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
24 25 26 |
# File 'lib/stackify_apm/instrumenter.rb', line 24 def current=(transaction) Thread.current[KEY] = transaction end |