Merge branch '3.5.x'

Closes gh-48053
This commit is contained in:
Moritz Halbritter
2025-11-11 14:29:39 +01:00
3 changed files with 67 additions and 0 deletions
@@ -29,6 +29,11 @@ Observability support relies on the https://github.com/micrometer-metrics/contex
By default, javadoc:java.lang.ThreadLocal[] values are not automatically reinstated in reactive operators.
This behavior is controlled with the configprop:spring.reactor.context-propagation[] property, which can be set to `auto` to enable automatic propagation.
If you're working with javadoc:org.springframework.scheduling.annotation.Async[format=annotation] methods or use an javadoc:org.springframework.core.task.AsyncTaskExecutor[], you have to register the javadoc:org.springframework.core.task.support.ContextPropagatingTaskDecorator[] on the executor, otherwise the observability context is lost when switching threads.
This can be done using this configuration:
include-code::ContextPropagationConfiguration[]
For more details about observations please see the {url-micrometer-docs}/observation[Micrometer Observation documentation].