metrics_util/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! Helper types and functions used within the metrics ecosystem.
#![deny(missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg), deny(rustdoc::broken_intra_doc_links))]

#[cfg(feature = "handles")]
mod bucket;
#[cfg(feature = "handles")]
#[cfg_attr(docsrs, doc(cfg(feature = "handles")))]
pub use bucket::AtomicBucket;

#[cfg(feature = "debugging")]
#[cfg_attr(docsrs, doc(cfg(feature = "debugging")))]
pub mod debugging;

#[cfg(feature = "handles")]
mod handles;

mod quantile;
pub use quantile::{parse_quantiles, Quantile};

#[cfg(feature = "registry")]
#[cfg_attr(docsrs, doc(cfg(feature = "registry")))]
pub mod registry;

mod common;
pub use common::*;

mod key;
pub use key::CompositeKey;

mod kind;
pub use kind::{MetricKind, MetricKindMask};

mod histogram;
pub use histogram::Histogram;

mod recoverable;
pub use recoverable::RecoverableRecorder;

#[cfg(feature = "summary")]
mod summary;
#[cfg(feature = "summary")]
#[cfg_attr(docsrs, doc(cfg(feature = "summary")))]
pub use summary::Summary;

pub mod layers;

#[cfg(test)]
mod test_util;