A tracing backend: span makes each span. context, when given,
runs every step of a fiber whose context holds this tracer.
Attributes#
| Attribute | Type | Description |
|---|---|---|
span | Callable[[SpanRequest], Span] | |
context | ContextHook | None = None |
Functions#
__init__#
__init__(span, context=None) -> None| Parameter | Type | Description |
|---|---|---|
span | Callable[[SpanRequest], Span] | |
context | ContextHook | None = None |
make#
make(span, context=None) -> Tracer| Parameter | Type | Description |
|---|---|---|
span | Callable[[SpanRequest], Span] | |
context | ContextHook | None = None |
Returns Tracer
@staticmethod
def make(span: Callable[[SpanRequest], Span], context: ContextHook | None = None) -> Tracer:
return Tracer(span, context)