Re-registration of a new metric under already used name lets all of them active. If a metric is registered periodically or on an recurring action this behavior will result in kinda resource leak. Metrics that are once added can't be removed nor unregistered, the API doesn't support that.
Code to reproduce, using dipstick/examples/observer.rs:
Re-registration of a new metric under already used name lets all of them active. If a metric is registered periodically or on an recurring action this behavior will result in kinda resource leak. Metrics that are once added can't be removed nor unregistered, the API doesn't support that.
Code to reproduce, using
dipstick/examples/observer.rs
:Value 6 that has never existed and that is based on average is then reported forever.
I prefer a behavior similar to this one - replace the existing metric by a new one. https://github.com/fralalonde/dipstick/commit/5e35e680b7c690bdc3d87b89107ee4bbe4be3283