_SpanStack Objects
push
pop
current
current_span
span
| Name | Type | Description |
|---|---|---|
logger | Logger | The Logger instance to use for logging. |
id | Optional[str] or Optional[Callable], optional | The ID for the span. If callable, it will be called to generate the ID. Defaults to None. |
trace_id | Optional[str] or Optional[Callable], optional | The trace ID to associate with this span. If callable, it will be called to generate the trace ID. Defaults to current_trace. |
name | Optional[str], optional | The name of the span. Defaults to None. |
tags | Optional[dict], optional | Additional tags to associate with the span. Defaults to None. |
| Name | Description |
|---|---|
Callable | A decorator function that wraps the original function with span functionality. |
ValueError- If the decorator is used outside of a @trace decorated function.