GitHub

API reference for Tracer.

A tracing backend: span makes each span. context, when given, runs every step of a fiber whose context holds this tracer.

Attributes

AttributeTypeDescription
spanCallable[[SpanRequest], Span]
contextContextHook | None = None

Functions

__init__

__init__(span, context=None) -> None
ParameterTypeDescription
spanCallable[[SpanRequest], Span]
contextContextHook | None = None

make

make(span, context=None) -> Tracer
ParameterTypeDescription
spanCallable[[SpanRequest], Span]
contextContextHook | None = None

Returns Tracer

@staticmethod
def make(span: Callable[[SpanRequest], Span], context: ContextHook | None = None) -> Tracer:
    return Tracer(span, context)