Files
Brian Clozel 297c74d29c Report handled exceptions to the observation
Prior to this commit, exceptions recorded on the
`ServerRequestObservationContext` by resolvers and exception handlers
were present in metrics, but never called `Observation.error`,
so tracing handlers left the server span unmarked.

This adds `recordHandledException` on `ServerHttpObservationFilter`
and `ServerRequestObservationContext`. It stores the exception on
the request or exchange and the filter, or `HttpWebHandlerAdapter`,
reports it once when the exchange completes. Spring MVC and WebFlux
handlers and the documentation snippets now use it.

Closes gh-37658
2026-11-10 18:49:01 +01:00
..