client_rust
client_rust copied to clipboard
feat(metrics/family): 🍭 `len()` returns the number of metrics
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.
my understanding is that this could be added behind the test-util flag proposed in #283.