IntoMetricsLabel

Trait IntoMetricsLabel 

Source
pub trait IntoMetricsLabel {
    // Required method
    fn label(&self) -> String;
}
Expand description

Provide a representation of the underlying instance as a prometheus metric label.

Required Methods§

Source

fn label(&self) -> String

Short string representation of the underlying instance.

This is intended to be used for a prometheus metric that tracks this instance with the goal of distributing the observations over multiple groups, where an unique label represents a group of same instance, observed many times.

Implementors§