zmon-controller icon indicating copy to clipboard operation
zmon-controller copied to clipboard

Log exceptions thrown by API controllers

Open elgris opened this issue 6 years ago • 0 comments

User story

As a developer I want controllers located in org.zalando.zmon.api log exceptions So that I have better visibility on problems

Explanation

Some controller classes already have @ExceptionHandlers enabled. For instance

public class AlertDefinitionsApi extends AbstractZMonController

Where AbstractZMonController defines a bunch of @ExceptionHandlers

However other controller classes don't have any exception handlers, so when the exception is thrown, error message is returned to the client, but not logged by ZMON controller.

elgris avatar Mar 14 '18 13:03 elgris