decorator Module

The decorator to apply if you want the given function traced.

Functions

distributed_trace

Decorator to apply to function to get traced automatically.

Span will use the func name or "name_of_span".

distributed_trace(__func: Callable[[P], T]) -> Callable[[P], T]

Parameters

func
callable
default value: None

A function to decorate

name_of_span
str

The span name to replace func name if necessary

kind
SpanKind

The kind of the span. INTERNAL by default.