Class LoggingContextConstants


  • public final class LoggingContextConstants
    extends Object
    This class contains several constants used in logging libraries' Mapped Diagnostic Context instrumentations.
    See Also:
    MDC
    • Field Detail

      • TRACE_ID

        public static final String TRACE_ID
        Key under which the current trace id will be injected into the context data.
        See Also:
        SpanContext.getTraceId(), Constant Field Values
      • SPAN_ID

        public static final String SPAN_ID
        Key under which the current span id will be injected into the context data.
        See Also:
        SpanContext.getSpanId(), Constant Field Values
      • TRACE_FLAGS

        public static final String TRACE_FLAGS
        Key under which the current trace flags will be injected into the context data.
        See Also:
        SpanContext.getTraceFlags(), Constant Field Values