Class RequestAttributesThreadLocalAccessor

java.lang.Object
org.springframework.web.context.request.RequestAttributesThreadLocalAccessor
All Implemented Interfaces:
io.micrometer.context.ThreadLocalAccessor<RequestAttributes>

public class RequestAttributesThreadLocalAccessor extends Object implements io.micrometer.context.ThreadLocalAccessor<RequestAttributes>
Adapt RequestContextHolder to the ThreadLocalAccessor contract to assist the Micrometer Context Propagation library with RequestAttributes propagation.
Since:
6.2
Author:
Tadaya Tsuyukubo, Rossen Stoyanchev
  • Field Details

    • KEY

      public static final String KEY
      Key under which this accessor is registered in ContextRegistry.
  • Constructor Details

    • RequestAttributesThreadLocalAccessor

      public RequestAttributesThreadLocalAccessor()
  • Method Details