When identical log lines arrive from different customers, tenantId and orderId can reveal whose request triggered each one. Mapped Diagnostic Context (MDC) associates such metadata with an execution thread so logging frameworks can add it to downstream log messages without threading telemetry parameters through business code. section 14.4.1
Figure 14.6 Mapped Diagnostic Context gives every execution thread a private sandbox.

The thread-local sandbox diagram illustrates how each execution thread can hold its own diagnostic context. section 14.4.1
A typical request context follows this pattern:
- Bind request metadata, such as tenantId or orderId, to the active thread. section 14.4.1
- Let logging statements deeper in the call stack inherit that context, avoiding telemetry arguments in domain signatures. section 14.4.1
- Remove the context when the scoped operation ends to prevent leaks or contamination of later work. section 14.7.2
Checkout correlation
A checkout operation binds its orderId to the thread. Logs emitted by the service or deeper calls then carry that identifier, allowing an operator to search for the transaction across services. section 14.7.2

