Add MetricsFamily::destroy.#4306
Conversation
Sometimes metrics need to be removed at runtime and this method allows to do just that.
|
Claude finished @twittner's task in 1m 44s —— View job Code Review: Add
|
There was a problem hiding this comment.
Code Review
This pull request introduces a destroy method to the MetricsFamily trait, enabling the removal of specific metrics from a family using their label values. The change includes implementations for Prometheus-based metrics in the query service, ensuring that resources can be cleaned up, and updates the cliquenet network metrics to utilize this new functionality. I have no feedback to provide.
Sometimes metrics need to be removed at runtime and this method allows to do just that.