Class: Skylight::Instrumenter::TraceInfo Private

Inherits:
Object
  • Object
show all
Defined in:
lib/skylight/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

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.



17
18
19
# File 'lib/skylight/instrumenter.rb', line 17

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.



21
22
23
# File 'lib/skylight/instrumenter.rb', line 21

def current=(trace)
  Thread.current[KEY] = trace
end