spring-framework/framework-docs
Brian Clozel 96a429a561 Move reactive server instrumentation out of WebFilter
Prior to this commit, the Observation instrumentation for Reactive
server applications was implemented with a `WebFilter`. This allowed to
record observations and set up a tracing context for the controller
handlers.

The limitation of this approach is that all processing happening at a
lower level is not aware of any observation. Here, the
`HttpWebHandlerAdapter` handles several interesting aspects:

* logging of HTTP requests and responses at the TRACE level
* logging of client disconnect errors
* handling of unresolved errors

With the current instrumentation, these logging statements will miss the
tracing context information. As a result, this commit deprecates the
`ServerHttpObservationFilter` in favor of a more direct instrumentation
of the `HttpWebHandlerAdapter`. This enables a more precise
instrumentattion and allows to set up the current observation earlier in
the reactor context: log statements will now contain the relevant
information.

Fixes gh-30013
2023-05-22 11:03:02 +02:00
..
modules/ROOT Move reactive server instrumentation out of WebFilter 2023-05-22 11:03:02 +02:00
src Move reactive server instrumentation out of WebFilter 2023-05-22 11:03:02 +02:00
antora.yml Fix Title in antora.yml 2023-05-04 15:35:05 +01:00
framework-docs.gradle Improve how the build deals with javadoc invalid references 2023-05-16 15:04:10 +02:00