spring-framework/framework-docs/modules/ROOT
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
..
assets/images Migrate Structure 2023-05-04 15:35:05 +01:00
examples Use include-code Macro 2023-05-04 15:35:05 +01:00
pages Move reactive server instrumentation out of WebFilter 2023-05-22 11:03:02 +02:00
partials/web Fix migration to asciidoctor tabs 2023-05-09 12:15:43 +01:00
nav.adoc Structural Fixes 2023-05-04 15:35:05 +01:00