Class ConsumerTracing


  • public class ConsumerTracing
    extends java.lang.Object
    Shared properties to trace the consumer that initiated a request. A consumer identifies itself in the request header. The consumer information is shared in the request and used for logging and monitoring.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAME_ATTRIBUTE
      Common name to share the consumer name internally, e.g.
      static java.lang.String NAME_MDC_KEY
      Name of the consumer name used to promote it in the org.slf4j.MDC
      static java.lang.String TOKEN_ATTRIBUTE
      Common name to share the consumer token internally, e.g.
      static java.lang.String TOKEN_HEADER
      The header name used to send the consumer token.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • TOKEN_HEADER

        public static final java.lang.String TOKEN_HEADER
        The header name used to send the consumer token.
        See Also:
        Constant Field Values
      • NAME_ATTRIBUTE

        public static final java.lang.String NAME_ATTRIBUTE
        Common name to share the consumer name internally, e.g. as attribute in the request context
      • TOKEN_ATTRIBUTE

        public static final java.lang.String TOKEN_ATTRIBUTE
        Common name to share the consumer token internally, e.g. as attribute in the request context
      • NAME_MDC_KEY

        public static final java.lang.String NAME_MDC_KEY
        Name of the consumer name used to promote it in the org.slf4j.MDC
        See Also:
        Constant Field Values