Skip to main content

Crate rolly

Crate rolly 

Source

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§

constants
metrics
trace_id

Structs§

LayerConfig
Configuration for building telemetry layers.
MetricsExportConfig
Configuration for metrics export encoding.
NullSink
No-op sink that discards all telemetry data.
TelemetryConfig
Configuration for the telemetry stack.
UseMetricsState
Stateful baseline for USE metrics polling.

Enums§

BackpressureStrategy
Configures behavior when the telemetry channel is full.

Traits§

TelemetrySink
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.