Attributes from the Mapped Diagnostic Context (MDC) present at the moment the log record was created. The MDC is supported by all the most popular logging solutions in the Java ecosystem, and it’s usually implemented as a thread-local map that stores context for e.g. a specific request.
| Property | Value |
|---|---|
| Type | string |
| Has PII | maybe |
| Exists in OpenTelemetry | No |
| Has dynamic suffix | Yes |
| Example | mdc.some_key='some_value' |