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.
15 16 17 |
# File 'lib/skylight/core/instrumenter.rb', line 15 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.
19 20 21 |
# File 'lib/skylight/core/instrumenter.rb', line 19 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.
23 24 25 |
# File 'lib/skylight/core/instrumenter.rb', line 23 def current=(trace) Thread.current[@key] = trace end |