class LittleGhost::Instrumentation::Handle
A Handle represents work between Instrumentation.start and finish.
Non-detached handles are fiber-owned and must finish in LIFO order after their children. Detached handles may finish outside the creating fiber but still cannot finish while local children remain active.
Attributes
Operation identity, inherited attributes, previous local handle, and monotonic start time.
Operation identity, inherited attributes, previous local handle, and monotonic start time.
Operation identity, inherited attributes, previous local handle, and monotonic start time.
Operation identity, inherited attributes, previous local handle, and monotonic start time.
Operation identity, inherited attributes, previous local handle, and monotonic start time.
Operation identity, inherited attributes, previous local handle, and monotonic start time.
Public Instance Methods
Source
# File lib/little_ghost/instrumentation.rb, line 87 def active? = @bus.active?(self)
Indicates whether this handle is still active.
Source
# File lib/little_ghost/instrumentation.rb, line 83 def detached? = @detached
Indicates whether this handle is outside the fiber-local operation stack.
Source
# File lib/little_ghost/instrumentation.rb, line 76 def finish(**attributes) @bus.finish(self, **attributes) end
Completes this operation with additional attributes.
Source
# File lib/little_ghost/instrumentation.rb, line 85 def local_parent? = @local_parent
Indicates whether the parent is another active handle on this bus.
Source
# File lib/little_ghost/instrumentation.rb, line 81 def owner? = @owner.equal?(Fiber.current)
Indicates whether this handle belongs to the current fiber.