Class: StackifyRubyAPM::Instrumenter::TransactionInfo Private

Inherits:
Object
  • Object
show all
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

Constructor Details

#initializeTransactionInfo

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

#currentObject

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