class Skylight::Core::Instrumenter::TraceInfo
Public Class Methods
new(key = KEY)
click to toggle source
# File lib/skylight/core/instrumenter.rb, line 14 def initialize(key = KEY) @key = key @muted_key = "#{key}_muted" end
Public Instance Methods
current()
click to toggle source
# File lib/skylight/core/instrumenter.rb, line 19 def current Thread.current[@key] end
current=(trace)
click to toggle source
# File lib/skylight/core/instrumenter.rb, line 23 def current=(trace) Thread.current[@key] = trace end
muted=(val)
click to toggle source
NOTE: This should only be set by the instrumenter, and only in the context of a `mute` block. Do not try to turn this flag on and off directly.
# File lib/skylight/core/instrumenter.rb, line 30 def muted=(val) Thread.current[@muted_key] = val end
muted?()
click to toggle source
# File lib/skylight/core/instrumenter.rb, line 34 def muted? !!Thread.current[@muted_key] end