Struct prometheus_client::encoding::text::ValueEncoder
source · pub struct ValueEncoder<'a> { /* private fields */ }
Implementations§
source§impl<'a> ValueEncoder<'a>
impl<'a> ValueEncoder<'a>
sourcepub fn encode_value<V: Encode>(
&mut self,
v: V
) -> Result<ExemplarEncoder<'_>, Error>
pub fn encode_value<V: Encode>(
&mut self,
v: V
) -> Result<ExemplarEncoder<'_>, Error>
Encode the metric value. E.g. in the case of Counter
the
monotonically increasing counter value.