Closed XAMPPRocky closed 2 years ago
HistogramVec is a MetricsVector which supports the get_metric_with_label_values method
Ah thank you. That wasn't entirely clear from the docs, as I assumed the two methods it showed were the only methods available. Would be nice if it was more clear, but that's more a rustdoc issue
Is your feature request related to a problem? Please describe. Going through the docs there seems to be missing functionality for
HistogramVec
's, namely that there's no way to get aHistogram
out of it, you can only getLocalHistogram
which as far as I can tell makes the type mostly useless for me, as I can't use it likeCounter
andMetric
's vector equivalents and have to have aVec<Histogram>
instead.Describe the solution you'd like The addition of a
HistogramVec::with_label_values
to getHistogram
s based on the provided label values.