Struct metrics_util::layers::Prefix [−][src]
pub struct Prefix<R> { /* fields omitted */ }
Applies a prefix to every metric key.
Keys will be prefixed in the format of <prefix>.<remaining>
.
Trait Implementations
impl<R: Recorder> Recorder for Prefix<R>
[src]
impl<R: Recorder> Recorder for Prefix<R>
[src]fn register_counter(
&self,
key: &Key,
unit: Option<Unit>,
description: Option<&'static str>
)
[src]
&self,
key: &Key,
unit: Option<Unit>,
description: Option<&'static str>
)
fn register_gauge(
&self,
key: &Key,
unit: Option<Unit>,
description: Option<&'static str>
)
[src]
&self,
key: &Key,
unit: Option<Unit>,
description: Option<&'static str>
)
fn register_histogram(
&self,
key: &Key,
unit: Option<Unit>,
description: Option<&'static str>
)
[src]
&self,
key: &Key,
unit: Option<Unit>,
description: Option<&'static str>
)
fn increment_counter(&self, key: &Key, value: u64)
[src]
fn update_gauge(&self, key: &Key, value: GaugeValue)
[src]
fn record_histogram(&self, key: &Key, value: f64)
[src]
Auto Trait Implementations
impl<R> RefUnwindSafe for Prefix<R> where
R: RefUnwindSafe,
impl<R> RefUnwindSafe for Prefix<R> where
R: RefUnwindSafe,
impl<R> UnwindSafe for Prefix<R> where
R: UnwindSafe,
impl<R> UnwindSafe for Prefix<R> where
R: UnwindSafe,