mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-28 21:19:02 +00:00
Merge branch '3.5.x'
Closes gh-48053
This commit is contained in:
+5
@@ -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].
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user