errors-spring-boot-starter
errors-spring-boot-starter copied to clipboard
Exposing Metrics
Synopsis
Since we catch all possible exceptions and know about their details, we might as well expose some metrics about them, too.
Possible Solution
We may register a WebErrorHandlerPostProcessor
conditionally to expose the related metrics about the handled exception, its corresponding error code, status code, etc.