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 StringSAMPLEDKey under which a boolean indicating whether current span is sampled will be injected into the context data.static StringSPAN_IDKey under which the current span id 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:
- 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:
- Constant Field Values
-
SAMPLED
public static final String SAMPLED
Key under which a boolean indicating whether current span is sampled will be injected into the context data.- See Also:
- Constant Field Values
-
-