Class LoggingContextConstants
- java.lang.Object
-
- io.opentelemetry.instrumentation.api.log.LoggingContextConstants
-
public final class LoggingContextConstants extends Object
This class contains several constants used in logging libraries' Mapped Diagnostic Context instrumentations.- See Also:
MDC
-
-
Field Summary
Fields Modifier and Type Field Description static StringSPAN_IDKey under which the current span id will be injected into the context data.static StringTRACE_FLAGSKey under which the current trace flags will be injected into the context data.static StringTRACE_IDKey under which the current trace id will be injected into the context data.
-
-
-
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
-
-