Package io.micrometer.context


@NonNullApi @NonNullFields package io.micrometer.context
This package contains abstractions and implementations for context propagation.
  • ThreadLocalAccessor and ContextAccessor allow applications and frameworks to plug in support for ThreadLocal and other Map-like types of context such as the Project Reactor Contexts.
  • ContextRegistry provides a static instance with global access to all known accessors that should be registered on startup.
  • ContextSnapshot uses the ContextRegistry and is used to capture context values, and then propagate them from one type of context to another or from one thread to another.