Margrete RPC

TraceEvent

A completed span emitted by :class:CallbackTracer.

Attributes

attributenamestr

The span name (e.g. "margrete.tx.apply").

attributestart_nsint

Start time from a monotonic clock, in nanoseconds.

attributeend_nsint

End time from a monotonic clock, in nanoseconds.

attributeattrsdict[str, Any]

Attributes attached when the span was opened.

attributeerror_typestr | None
= None

Exception class name if the span ended with an error, else None.

attributeerror_messagestr | None
= None

Exception message if the span ended with an error, else None.

attributeduration_sfloat

The span's wall-clock duration in seconds.

Functions

func__init__(self, name, start_ns, end_ns, attrs, error_type=None, error_message=None) -> None
paramself
paramnamestr
paramstart_nsint
paramend_nsint
paramattrsdict[str, Any]
paramerror_typestr | None
= None
paramerror_messagestr | None
= None

Returns

None

On this page