Interface ContextManager

All Known Implementing Classes:
ContextManagerImpl

@Contract public interface ContextManager
The ContextManager provides access to diagnostics Contexts.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final Logger
     
    static final String
     
    static final String
    The key under which instances of Context will be created and found in the ContextMap.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the Context associated with the currently executing task, creating a new Context if required.
  • Field Details

    • WORK_CONTEXT_KEY

      static final String WORK_CONTEXT_KEY
      The key under which instances of Context will be created and found in the ContextMap. This key will be used by the ContextMap implementation to label the data belonging to this Context when that data is being propagated. Remote systems attempting to use that data (e.g. to construct a propagated Context) will use the value of this key to find the propagated data. Therefore the value of this key should not be changed...ever!
      See Also:
    • LOG_MESSAGE_RESOURCE

      static final String LOG_MESSAGE_RESOURCE
      See Also:
    • LOGGER_NAME

      static final String LOGGER_NAME
      See Also:
    • LOGGER

      static final Logger LOGGER
  • Method Details

    • getContext

      Context getContext()
      Get the Context associated with the currently executing task, creating a new Context if required.