Module base
Expand description
Core protocol type definitions and storage family trait.
This module defines the core data structures used for telemetry message exchange. It includes message types for logging, tracing, and time synchronization, as well as supporting types for execution tracking and attribute management.
§Message Types
The protocol supports several categories of telemetry messages:
- Log Messages - Structured logging with severity levels and attributes
- Tracing Messages - Distributed tracing with spans, events, and links
- Time Sync Messages - Time synchronization between systems
§Thread Tracking
Each message is associated with a ThreadId that uniquely identifies the thread it came from
(globally unique across all processes).
This allows telemetry data from multiple threads to be correlated and analyzed separately.
Structs§
- Instance
Message - A telemetry message associated with a specific execution thread.
- KeyValue
- A key-value attribute pair used in telemetry data.
- LogMessage
- A structured log message with severity, timestamp, and attributes.
- Process
Id - A globally-unique id identifying a process.
- Span
AddEvent Message - Message indicating an event has been added to a span.
- Span
AddLink Message - Message indicating a link has been added to a span.
- Span
Close Message - Message indicating a span has been closed (completed).
- Span
Context - A struct representing the context of a span, including its
ProcessIdandSpanId. - Span
Create Message - Message indicating the creation of a new span.
- Span
Enter Message - Message indicating a span has been entered.
- Span
Exit Message - Message indicating a span has been exited.
- SpanId
- A process-unique id for a span.
- Span
SetAttribute Message - Message indicating an attribute has been set on a span.
- Thread
Id - A globally-unique id identifying a thread within a specific process.
- Time
Sync Message - A time synchronization message for coordinating clocks between systems.
Enums§
- Severity
- Log message severity levels.
- Telemetry
Message - An enumeration of all possible telemetry message types.
- Tracing
Message - Messages related to distributed tracing operations.
Traits§
- Storage
Family - A trait defining how data is stored in different contexts.