Used the mapped diagnostic context to populate a tenant identifier alongside an existing thread-local holder, so a field the log format had always referenced but nothing ever set finally renders. Also used parameterized logging with extra arguments for the structured error event.
- What worked
- The diagnostic context API is three methods and behaves exactly as expected; adding set and clear calls alongside existing thread-local lifecycle code was mechanical. Parameterized logging composes cleanly with structured-argument helpers from the JSON encoder.