2019-04-23 13:32:28 -07:00
|
|
|
//! Helper types and functions used within the metrics ecosystem.
|
2019-07-05 18:14:08 -07:00
|
|
|
#![deny(missing_docs)]
|
2020-10-24 06:08:11 -07:00
|
|
|
#![cfg_attr(not(feature = "std"), no_std)]
|
|
|
|
|
|
|
|
#[cfg(feature = "std")]
|
2019-05-27 09:30:28 -07:00
|
|
|
mod bucket;
|
2020-10-24 06:08:11 -07:00
|
|
|
#[cfg(feature = "std")]
|
2019-05-27 09:30:28 -07:00
|
|
|
pub use bucket::AtomicBucket;
|
2019-04-23 13:32:28 -07:00
|
|
|
|
2020-10-24 06:08:11 -07:00
|
|
|
#[cfg(feature = "std")]
|
2020-09-26 19:26:39 -07:00
|
|
|
mod debugging;
|
2020-10-24 06:08:11 -07:00
|
|
|
#[cfg(feature = "std")]
|
2020-09-26 19:26:39 -07:00
|
|
|
pub use debugging::{DebugValue, DebuggingRecorder, MetricKind, Snapshotter};
|
|
|
|
|
2020-10-24 06:08:11 -07:00
|
|
|
#[cfg(feature = "std")]
|
2020-09-26 19:26:39 -07:00
|
|
|
mod handle;
|
2020-10-24 06:08:11 -07:00
|
|
|
#[cfg(feature = "std")]
|
2020-09-26 19:26:39 -07:00
|
|
|
pub use handle::Handle;
|
|
|
|
|
2019-05-27 09:30:28 -07:00
|
|
|
mod quantile;
|
|
|
|
pub use quantile::{parse_quantiles, Quantile};
|
2019-07-23 09:25:49 -07:00
|
|
|
|
2020-10-24 06:08:11 -07:00
|
|
|
#[cfg(feature = "std")]
|
2020-09-26 19:26:39 -07:00
|
|
|
mod registry;
|
2020-10-24 06:08:11 -07:00
|
|
|
#[cfg(feature = "std")]
|
2020-09-26 19:26:39 -07:00
|
|
|
pub use registry::Registry;
|
|
|
|
|
|
|
|
mod key;
|
|
|
|
pub use key::CompositeKey;
|
|
|
|
|
|
|
|
mod histogram;
|
|
|
|
pub use histogram::Histogram;
|
|
|
|
|
|
|
|
pub mod layers;
|