Mdc Attributes

1 attribute in this category.1 stable

1 attribute

Stable Attributes

mdc.<key>

stringScrub: AutoVisibility: PublicOTel: FalseDynamic

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.

Examplemdc.some_key='some_value'
Dynamic SuffixYes - the key contains dynamic parts
Changelog
v0.3.0#176
Raw JSON
{
  "key": "mdc.<key>",
  "brief": "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.",
  "has_dynamic_suffix": true,
  "type": "string",
  "apply_scrubbing": {
    "key": "auto"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "mdc.some_key='some_value'",
  "changelog": [
    {
      "version": "0.3.0",
      "prs": [
        176
      ]
    }
  ]
}