Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
GaugesSupport throws an exception when activation happens after first time, as metrics do not get unregistered from the MetricRegistry.
Method @Deactivate should be updated to unregister registered metric at the @Activate method.
There seems to be already some-kind of metric-name tracking, but do not know what is the useage. So I've created "quick&easy" solution, to track registered metric names and use this name array at the @Deactivate to unregister metric names.
I will provide PR at the project GitHub page located at the:
https://github.com/apache/sling-org-apache-sling-commons-scheduler
This is just a proposal, I guess author knows what is missing better.