Skip to main content
View module source on GitHub

_SpanStack Objects

Stack of spans.

push

Push a span onto the stack.

pop

Pop a span from the stack.

current

Get the current span from the stack.

current_span

Get the current span from the stack.

span

Decorator for creating a span within a trace. This decorator should be used within a function that is already decorated with @trace. It creates a new span and injects a tracer object into the decorated function. Arguments: Returns: Raises:
  • ValueError - If the decorator is used outside of a @trace decorated function.