client_rust
client_rust copied to clipboard
feat(metrics/family): 🍬 `contains()` checks if metrics exist
this commit introduces a small accessor to the Family<S, M, C> metric family type. this new contains() method allows callers to check whether or not a metric with the provided set of labels exists.
if no metric has been created via e.g. get_or_create(), this method will return false.
my understanding is that this could be added behind the test-util flag proposed in #283.