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]

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

Create a new scope to report metric values.

Trait Implementations

impl<M> Debug for ScopedMetrics<M> where
    M: Debug
[src]

[src]

Formats the value using the given formatter.