Skip to main content

Crate rivet_metrics

Crate rivet_metrics 

Source

Re-exports§

pub use registry::REGISTRY;
pub use prometheus;

Structs§

GaugeGuard
Holds an increment on a gauge and releases it when dropped. Use it for gauges that count work currently in progress so the decrement cannot be lost to an early return, a ?, a cancelled future, or a panic.
REGISTRY

Constants§

BUCKETS
LIFETIME_BUCKETS
MICRO_BUCKETS
PAGE_COUNT_BUCKETS
TASK_POLL_BUCKETS

Traits§

GaugeGuardExt
Adds RAII increments to every gauge type, including the gauges returned by GenericGaugeVec::with_label_values.

Type Aliases§

FloatGaugeGuard
Guard returned by Gauge and GaugeVec.
IntGaugeGuard
Guard returned by IntGauge and IntGaugeVec.