momo0313 opened a new issue #5101: URL: https://github.com/apache/skywalking/issues/5101
Please answer these questions before submitting your issue. - Why do you submit this issue? - [x] Question or discussion ___ ### Question It 's common to use global exception handler in spring. We can throw the all business exceptions in controller, and catch it by a custom ExceptionHandler with ControllerAdvice annotation. With the springmvc plugin in agent, it will mark the status of span to error, even though the 200 http status is returned in the global exception handler. In this case, If we choose Error status on the trace page, there are lots of traces with business exception, and it's hard to get more useful errors like 4xx, 5xx and so on. Is there any good way in this case? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
