Struct dipstick::AppMetrics
[−]
[src]
pub struct AppMetrics<M, S> { /* fields omitted */ }
Variations of this should also provide control of the metric recording scope.
Methods
impl<M, S> AppMetrics<M, S> where
S: Sink<M>,
M: Clone + Send + Sync,
[src]
S: Sink<M>,
M: Clone + Send + Sync,
fn marker<AS>(&self, name: AS) -> Marker<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) -> Counter<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) -> Timer<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) -> Gauge<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 flush_scope(&mut self)
[src]
Forcefully flush the backing metrics scope. This is usually not required since static metrics use auto flushing scopes. The effect, if any, of this method depends on the selected metrics backend.
Trait Implementations
impl<M, S> Debug for AppMetrics<M, S> where
S: Debug,
[src]
S: Debug,