Struct dipstick::ScopedMetrics
[−]
[src]
pub struct ScopedMetrics<'ph, M: 'ph, S> { /* fields omitted */ }
Variations of this should also provide control of the metric recording scope.
Methods
impl<'ph, M, S> ScopedMetrics<'ph, M, S> where
S: Sink<M>,
M: 'static + Clone + Send + Sync,
[src]
S: Sink<M>,
M: 'static + Clone + Send + Sync,
fn marker<AS>(&self, name: AS) -> ScopeMarker<M> where
AS: Into<String> + AsRef<str>,
M: Send + Sync,
[src]
AS: Into<String> + AsRef<str>,
M: Send + Sync,
Get an event counter of the provided name.
fn counter<AS>(&self, name: AS) -> ScopeCounter<M> where
AS: Into<String> + AsRef<str>,
M: Send + Sync,
[src]
AS: Into<String> + AsRef<str>,
M: Send + Sync,
Get a counter of the provided name.
fn timer<AS>(&self, name: AS) -> ScopeTimer<M> where
AS: Into<String> + AsRef<str>,
M: Send + Sync,
[src]
AS: Into<String> + AsRef<str>,
M: Send + Sync,
Get a timer of the provided name.
fn gauge<AS>(&self, name: AS) -> ScopeGauge<M> where
AS: Into<String> + AsRef<str>,
M: Send + Sync,
[src]
AS: Into<String> + AsRef<str>,
M: Send + Sync,
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 new_scope(&self) -> ScopeFn<M>
[src]
Create a new scope to report metric values.
Trait Implementations
impl<'ph, M: 'ph, S> Debug for ScopedMetrics<'ph, M, S> where
S: Debug,
[src]
S: Debug,