Describe the bug
I have a service that uses @ControllerAdvice by Spring Boot in order to handle exceptions globally and return the expected Problem response.
When the request is processed like processor.processRequest(request) throws Exception the processRequest method might throw an exception so that the ExceptionHandler is taking care of returning the required response.
processRequest it annotated with @WithSpan as we set custom attributes there. When an Exception is thrown, the Span is marked as error: true, though it shouldn't as the ExceptionHandler is setting status code 400 in the response.
What did you expect to see?
I would have expected to see a regular span with error: false.
What did you see instead?
span with error: true.
What version are you using?
v1.15.0-alpha