pub struct Records<'a> { /* private fields */ }
Expand description

Allows adding all values for an individual metric.

Values can either be simple, in which case they only consist of a value and are appended via value, or they can be labelled, in which case there are multiple values for a metric that are distinguished via a set of labels. Such values are appended via label_value.

Implementations

Appends a simple value to the metrics target.

The value is simply output via the Display trait.

Appends a single labelled value to the metrics target.

The labels are a slice of pairs of strings with the first element the name of the label and the second the label value. The metrics value is simply printed via the Display trait.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more