Struct dipstick::ScopedMetrics
[−]
[src]
pub struct ScopedMetrics<M> { /* fields omitted */ }
Variations of this should also provide control of the metric recording scope.
Methods
impl<M> ScopedMetrics<M> where
M: 'static + Clone + Send + Sync,
[src]
M: 'static + Clone + Send + Sync,
fn marker<AS>(&self, name: AS) -> ScopeMarker<M> where
AS: Into<String> + AsRef<str>,
[src]
AS: Into<String> + AsRef<str>,
Get an event counter of the provided name.
fn counter<AS>(&self, name: AS) -> ScopeCounter<M> where
AS: Into<String> + AsRef<str>,
[src]
AS: Into<String> + AsRef<str>,
Get a counter of the provided name.
fn timer<AS>(&self, name: AS) -> ScopeTimer<M> where
AS: Into<String> + AsRef<str>,
[src]
AS: Into<String> + AsRef<str>,
Get a timer of the provided name.
fn gauge<AS>(&self, name: AS) -> ScopeGauge<M> where
AS: Into<String> + AsRef<str>,
[src]
AS: Into<String> + AsRef<str>,
Get a gauge of the provided name.
fn with_prefix<IS>(&self, prefix: IS) -> Self where
IS: Into<String>,
[src]
IS: Into<String>,
Prepend the metrics name with a prefix. Does not affect metrics that were already obtained.
fn open_scope(&self) -> ControlScopeFn<M>
[src]
Create a new scope to report metric values.
Trait Implementations
impl<M> Debug for ScopedMetrics<M> where
M: Debug,
[src]
M: Debug,