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
pub use app_metrics::*;
pub use aggregate::*;
pub use publish::*;
pub use scores::*;
pub use core::*;
pub use namespace::*;
use output::to_void;
fn build_aggregator() -> Chain<Aggregate> {
aggregate(summary, to_void())
}
pub fn snapshot() -> Vec<ScoreSnapshot> {
vec![]
}
fn build_self_metrics() -> AppMetrics<Aggregate> {
app_metrics(AGGREGATOR.clone()).with_prefix("dipstick")
}
lazy_static! { static ref AGGREGATOR: Chain<Aggregate> = build_aggregator(); }
app_metrics!(Aggregate, DIPSTICK_METRICS = build_self_metrics());