Expand description
In-memory span model, ids and W3C trace context.
Structs§
- Span
- A finished (or in-progress) span.
- Span
Event - A timestamped event inside a span.
- SpanId
- 8-byte span id.
- TraceId
- 16-byte trace id.
- Trace
Parent - A parsed W3C
traceparentheader (00-<trace-id>-<parent-id>-<flags>).
Enums§
- Attr
Value - An attribute value.
- Span
Kind - Span kind (subset used here).
- Status
Code - 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
maxbytes on a char boundary, appending…when cut.
Type Aliases§
- Attributes
- Ordered key/value attributes.