moirai_metrics/lib.rs
1//! Performance metrics and monitoring for Moirai.
2//!
3//! The crate exposes cloneable metric handles backed by shared atomic or
4//! bounded mutex state. Metric snapshots are value copies suitable for export
5//! without retaining collector locks.
6
7#![forbid(unsafe_code)]
8#![deny(missing_docs)]
9
10mod collector;
11mod counter;
12mod exporter;
13mod gauge;
14mod histogram;
15mod snapshot;
16
17pub use collector::{Metrics, MetricsCollector};
18pub use counter::Counter;
19pub use exporter::PrometheusExporter;
20pub use gauge::Gauge;
21pub use histogram::{Histogram, HistogramError, HistogramStats};
22pub use snapshot::MetricsSnapshot;
23
24#[cfg(test)]
25#[path = "tests.rs"]
26mod tests;