Skip to main content

Module proto

Module proto 

Source
Expand description

Proto-type escape hatch for the rare call sites that need direct access to the wire envelope’s typed enum fields — partitioners dispatching on proto::Severity / proto::SamplingReason, live-tail serializers that render the proto name, sink framework tests that assert on proto::EnumValue variants. Phase 3 spec § 5.1 + § 6.4.

99 % of consumers don’t need this module — they use self_event / SelfEventBuilder for envelope construction and the façade Severity / Tier for enum dispatch. Reach in here when the façade surface doesn’t cover your case; prefer contributing a helper back to the façade over normalising direct usage.

Structs§

ObsBatch
ObsEnvelope
SizeCache
Transient pre-order cache of nested-message sizes for the two-pass serialization model (compute_size populates, write_to consumes).

Enums§

EnumValue
A protobuf enum field value that can hold either a known variant or an unknown i32 value.
SamplingReason
Severity
Tier

Traits§

Enumeration
Trait implemented by all generated protobuf enum types.