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]

[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<'ph, M: 'ph, S> Debug for ScopedMetrics<'ph, M, S> where
    S: Debug
[src]

[src]

Formats the value using the given formatter.