You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example if spring throws a NoResourceFoundException this would result in a 404 response, which is totally expected behaviour.
Unfortunately the span is still flaged as an error.
This causes a spam of error-flagged traces even for harmless stituations.
The same applies to custom created Exceptions that are annotated with @ResponseStatus or any spring controller advices that transalte i.e. a EntityNotFoundException into a 204 response.
Example of a 404 causing the span to be tagged as error.
The text was updated successfully, but these errors were encountered:
Xyaren
changed the title
Non-Error Exceptions thrown in spring controllers cause the errro flag to be set.
Non-Error Exceptions thrown in spring controllers cause the span error flag to be set.
Jun 7, 2024
For example if spring throws a NoResourceFoundException this would result in a 404 response, which is totally expected behaviour.
Unfortunately the span is still flaged as an error.
This causes a spam of error-flagged traces even for harmless stituations.
The same applies to custom created Exceptions that are annotated with @ResponseStatus or any spring controller advices that transalte i.e. a EntityNotFoundException into a 204 response.
Example of a 404 causing the span to be tagged as error.
The text was updated successfully, but these errors were encountered: