open_metrics_client/metrics.rs
1//! Metric type implementations.
2
3pub mod counter;
4pub mod exemplar;
5pub mod family;
6pub mod gauge;
7pub mod histogram;
8pub mod info;
9
10/// A metric that is aware of its Open Metrics metric type.
11pub trait TypedMetric {
12 const TYPE: MetricType = MetricType::Unknown;
13}
14
15#[derive(Clone, Copy)]
16pub enum MetricType {
17 Counter,
18 Gauge,
19 Histogram,
20 Info,
21 Unknown,
22 // Not (yet) supported metric types.
23 //
24 // GaugeHistogram,
25 // StateSet,
26 // Summary
27}