pub struct LabeledMetricsBuilder<'a, W>where
    W: Write,
{ /* private fields */ }
Expand description

A helper for encoding metrics that use labels. See MetricsEncoder::counter_vec and MetricsEncoder::gauge_vec.

Implementations§

Encodes the metrics value observed for the specified values of labels.

Panics

This function panics if one of the labels does not match pattern [a-zA-Z_][a-zA-Z0-9_]. See https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.