Skip to main content

Module span

Module span 

Source
Expand description

In-memory span model, ids and W3C trace context.

Structs§

Span
A finished (or in-progress) span.
SpanEvent
A timestamped event inside a span.
SpanId
8-byte span id.
TraceId
16-byte trace id.
TraceParent
A parsed W3C traceparent header (00-<trace-id>-<parent-id>-<flags>).

Enums§

AttrValue
An attribute value.
SpanKind
Span kind (subset used here).
StatusCode
Span status code.

Constants§

MAX_EVENTS_PER_SPAN
Maximum events recorded per span.

Functions§

now_unix_nanos
Current Unix time in nanoseconds (0 where no system clock exists).
truncate
Truncate to at most max bytes on a char boundary, appending … when cut.

Type Aliases§

Attributes
Ordered key/value attributes.