Class: Skylight::Core::Instrumenter::TraceInfo Private
- Inherits:
-
Object
- Object
- Skylight::Core::Instrumenter::TraceInfo
- Defined in:
- lib/skylight/core/instrumenter.rb
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.
Instance Method Summary collapse
- #current ⇒ Object private
- #current=(trace) ⇒ Object private
-
#initialize(key = KEY) ⇒ TraceInfo
constructor
private
A new instance of TraceInfo.
Constructor Details
#initialize(key = KEY) ⇒ TraceInfo
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 TraceInfo.
14 15 16 |
# File 'lib/skylight/core/instrumenter.rb', line 14 def initialize(key = KEY) @key = key 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.
18 19 20 |
# File 'lib/skylight/core/instrumenter.rb', line 18 def current Thread.current[@key] end |
#current=(trace) ⇒ 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.
22 23 24 |
# File 'lib/skylight/core/instrumenter.rb', line 22 def current=(trace) Thread.current[@key] = trace end |