spring-framework/framework-docs/modules/ROOT/pages
Brian Clozel f5a356c9c6 Add ContextPropagatingTaskDecorator
Prior to this commit, `@Async` and `@EventListener` annotated methods
would lose the the logging and observation contexts whenever their
execution was scheduled on a different Thread.

The Context Propagation library supports this use case and can propagate
context values in ThreadLocals, Reactor Context and more.

This commit introduces a new `TaskDecorator` implementation that
leverages the Context Propagation library. When configured on a
`TaskExecutor`, this allows to properly propagate context value through
the execution of the task.

This implementation is completely optional and requires the
"io.micrometer:context-propagation" library on the classpath. Enabling
this feature must be done consciously and sometimes selectively, as
context propagation introduces some overhead.

Closes gh-31130
2023-08-29 11:21:47 +02:00
..
core Add ContextPropagatingTaskDecorator 2023-08-29 11:21:47 +02:00
data-access Polish reference documentation for JdbcClient 2023-08-21 16:51:14 +02:00
integration Add ContextPropagatingTaskDecorator 2023-08-29 11:21:47 +02:00
languages Migrate to Asciidoctor Tabs 2023-05-04 15:35:05 +01:00
testing Document best practices for inlined properties in @TestPropertySource 2023-08-16 17:27:18 +02:00
web Refine documentation contribution 2023-08-28 12:14:35 +02:00
appendix.adoc Fail on error by default during test AOT processing 2023-08-03 10:59:46 +03:00
attributes.adoc Migrate Structure 2023-05-04 15:35:05 +01:00
core.adoc Remove includes 2023-05-04 15:35:05 +01:00
data-access.adoc Enable Section Summary TOC for small pages 2023-05-04 15:35:05 +01:00
index.adoc Update reference documentation index 2023-06-14 08:49:52 +02:00
integration.adoc Enable Section Summary TOC for small pages 2023-05-04 15:35:05 +01:00
languages.adoc Enable Section Summary TOC for small pages 2023-05-04 15:35:05 +01:00
overview.adoc Remove includes 2023-05-04 15:35:05 +01:00
page-layout.adoc Remove unnecessary asciidoc attributes 2023-05-04 15:35:05 +01:00
rsocket.adoc Merge branch '6.0.x' 2023-08-22 16:57:37 +02:00
testing.adoc Enable Section Summary TOC for small pages 2023-05-04 15:35:05 +01:00
web-reactive.adoc Structural Fixes 2023-05-04 15:35:05 +01:00
web.adoc Enable Section Summary TOC for small pages 2023-05-04 15:35:05 +01:00