Struct dipstick::AppMetrics [] [src]

pub struct AppMetrics<M> { /* fields omitted */ }

Variations of this should also provide control of the metric recording scope.

Methods

impl<M> AppMetrics<M> where
    M: Clone + Send + Sync + 'static, 
[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]

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.

[src]

Schedule for the metrics aggregated of buffered by downstream metrics sinks to be sent out at regular intervals.

Trait Implementations

impl<M> From<Chain<M>> for AppMetrics<M>
[src]

[src]

Performs the conversion.

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

[src]

Formats the value using the given formatter. Read more

impl<M: Clone> Clone for AppMetrics<M>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<M: Send + Sync + Clone + 'static> WithNamespace for AppMetrics<M>
[src]

[src]

Join namespace and prepend in newly defined metrics.

[src]

Insert prefix in newly defined metrics.

[src]

Join namespace and prepend in newly defined metrics.

impl<M: Send + Sync + Clone + 'static> WithCache for AppMetrics<M>
[src]

[src]

Cache metrics to prevent them from being re-defined on every use.

impl<M: Send + Sync + Clone + 'static> WithSamplingRate for AppMetrics<M>
[src]

[src]

Perform random sampling of values according to the specified rate.

impl<M: Send + Sync + Clone + 'static> WithAsyncQueue for AppMetrics<M>
[src]

[src]

Enqueue collected metrics for dispatch on background thread.

Auto Trait Implementations

impl<M> Send for AppMetrics<M>

impl<M> Sync for AppMetrics<M>