Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Refactored the public metrics API. Calls capturing metrics should log warnings instead of throwing IOExceptions.
Description
A large number of metrics APIs seem to declare to throw IOExceptions needlessly. (incrementCounter, decrementCounter etc.)
This is not only misleading but it fills up the code with unnecessary catch blocks never to be reached.
We should investigate if these exceptions are thrown at all, and remove them if it is truly unused.