Class Slf4jThreadLocalAccessor

java.lang.Object
io.micrometer.context.integration.Slf4jThreadLocalAccessor
All Implemented Interfaces:
ThreadLocalAccessor<Map<String,String>>

public class Slf4jThreadLocalAccessor extends Object implements ThreadLocalAccessor<Map<String,String>>
ThreadLocalAccessor for copying contents of the MDC across Thread boundaries. It can work with selected keys only or copy the entire contents of the MDC. It is recommended to use only when no other ThreadLocalAccessor interacts with the MDC or the selected keys, for instance tracing libraries.
Since:
1.1.1