Module base

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§

InstanceMessage
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.
ProcessId
A globally-unique id identifying a process.
SpanAddEventMessage
Message indicating an event has been added to a span.
SpanAddLinkMessage
Message indicating a link has been added to a span.
SpanCloseMessage
Message indicating a span has been closed (completed).
SpanContext
A struct representing the context of a span, including its ProcessId and SpanId.
SpanCreateMessage
Message indicating the creation of a new span.
SpanEnterMessage
Message indicating a span has been entered.
SpanExitMessage
Message indicating a span has been exited.
SpanId
A process-unique id for a span.
SpanSetAttributeMessage
Message indicating an attribute has been set on a span.
ThreadId
A globally-unique id identifying a thread within a specific process.
TimeSyncMessage
A time synchronization message for coordinating clocks between systems.

Enums§

Severity
Log message severity levels.
TelemetryMessage
An enumeration of all possible telemetry message types.
TracingMessage
Messages related to distributed tracing operations.

Traits§

StorageFamily
A trait defining how data is stored in different contexts.