Crate datadog_agent_metrics_v3

Crate datadog_agent_metrics_v3 

Source
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§

V3EncodeError
Error encountered while encoding a V3 payload.
V3EncodedMetrics
Encoded V3 metrics payload with telemetry data.
V3EncoderStats
Telemetry data produced while encoding a V3 metrics payload.
V3MetricBuilder
Builder for a single metric within a V3 payload.
V3ValueEncodingStats
Counts of how many point values were encoded into each value column.
V3Writer
V3 columnar metrics writer.

Enums§

V3MetricType
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 in datadog_agent_metrics_v3::writer as the *_FIELD_NUMBER constants). Index 0 is unused since field numbers start at 1.