SpanStack
class SpanStack (View source)
The SpanStack class allows context transfer between spans.
When a new span is created, it will always be on the top the of active stack, becoming the new active span. This new span's stack property is assigned the stack of the previous active span (or a primary stack is initialized in the case of a root span). The parent of a SpanStack is the active stack at the time of the creation of the new stack.
Each SpanStack has only one active span at a time, and can be manipulated using the 'create_stack' and 'switch_stack' functions. 'create_stack' creates a new SpanStack whose parent is the currently active stack, while 'switch_stack' switches the active span.
Properties
| SpanStack|null | $parent | ||
| SpanData|null | $active |