Re-exports§
pub use metrics::counter;pub use metrics::gauge;pub use metrics::histogram;pub use metrics::Counter;pub use metrics::Gauge;pub use metrics::Histogram;
Modules§
Structs§
- Layer
Config - Configuration for building telemetry layers.
- Metrics
Export Config - Configuration for metrics export encoding.
- Null
Sink - No-op sink that discards all telemetry data.
- Telemetry
Config - Configuration for the telemetry stack.
- UseMetrics
State - Stateful baseline for USE metrics polling.
Enums§
- Backpressure
Strategy - Configures behavior when the telemetry channel is full.
Traits§
- Telemetry
Sink - Sink for encoded OTLP protobuf payloads.
Functions§
- build_
layer - Build telemetry layers without installing a global subscriber.
- collect_
and_ encode_ metrics - Collect current metric snapshots and encode as OTLP protobuf.
- collect_
use_ metrics - Poll USE metrics once.
- increment_
dropped_ total - Increment the global telemetry drop counter.
- telemetry_
dropped_ total - Return the total number of telemetry messages dropped due to a full channel.