client_rust icon indicating copy to clipboard operation
client_rust copied to clipboard

feat(metrics/family): 🍭 `len()` returns the number of metrics

Open cratelyn opened this issue 1 year ago • 1 comments

this commit introduces a len() method to Family<S, M, C>, which returns the number of series within a metric family.

see also #245, which allows callers to check if a family contains() a given label set.

cratelyn avatar Nov 18 '24 23:11 cratelyn

my understanding is that this could be added behind the test-util flag proposed in #283.

cratelyn avatar Sep 02 '25 17:09 cratelyn