Expand description
V3 columnar protobuf codec for Datadog metrics.
This crate implements the V3 columnar format for Datadog metrics payloads. Unlike the V2 row-based protobuf format where each metric is a complete message, V3 uses a columnar layout with dictionary-based string deduplication for efficient encoding.
V3Writer accumulates metrics one at a time via V3Writer::write, then V3Writer::finalize
serializes the accumulated columns into a protobuf payload.
Structs§
- V3Encode
Error - Error encountered while encoding a V3 payload.
- V3Encoded
Metrics - Encoded V3 metrics payload with telemetry data.
- V3Encoder
Stats - Telemetry data produced while encoding a V3 metrics payload.
- V3Metric
Builder - Builder for a single metric within a V3 payload.
- V3Value
Encoding Stats - Counts of how many point values were encoded into each value column.
- V3Writer
- V3 columnar metrics writer.
Enums§
- V3Metric
Type - V3 metric type values.
Constants§
- COLUMN_
NAMES - Display names for the V3 columns, indexed by their Protocol Buffers field number (from
lib/protos/datadog/proto/agent-payload/intake_v3.proto, also mirrored indatadog_agent_metrics_v3::writeras the*_FIELD_NUMBERconstants). Index 0 is unused since field numbers start at 1.