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]

[src]

Get an event counter of the provided name.

[src]

Get a counter of the provided name.

[src]

Get a timer of the provided name.

[src]

Get a gauge of the provided name.

[src]

Prepend the metrics name with a prefix. Does not affect metrics that were already obtained.

[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]

[src]

Formats the value using the given formatter.