Closed
Description
The Micrometer context-propagation library propagates context across different types of context such as ThreadLocal
, Reactor Context
, and others. It does not replace those but rather helps to propagate values from one type of context to another, or simply to restore ThreadLocal values on a different thread.
One place where we can integrate the library is in Spring MVC. When a controller method returns Flux
or Mono
, we can use the Context Propagation library to populate the Reactor Context
with values from any ThreadLocal
's for which there is a registered ThreadLocalAccessor
.