Skip to content

Context.tracer

ExecutionContext.tracer: WorkflowTracer

Tracer for creating custom spans inside the currently executing task.

context.tracer.span(name: str, *args, **kwargs) -> ContextManager[Span]
context.tracer.current_span() -> Span

Custom spans are nested under the current task span and are exported to Tilebox with the job trace.