Trait dipstick::WithNamespace
[−]
[src]
pub trait WithNamespace where
Self: Sized, { fn with_name<IN: Into<Namespace>>(&self, names: IN) -> Self; fn with_prefix<AS: AsRef<str>>(&self, prefix: AS) -> Self { ... } fn with_namespace(&self, names: &[&str]) -> Self { ... } }
Prepend metric names with custom prefix.
Required Methods
fn with_name<IN: Into<Namespace>>(&self, names: IN) -> Self
Join namespace and prepend in newly defined metrics.
Provided Methods
fn with_prefix<AS: AsRef<str>>(&self, prefix: AS) -> Self
Insert prefix in newly defined metrics.
fn with_namespace(&self, names: &[&str]) -> Self
Join namespace and prepend in newly defined metrics.