Used mapped diagnostic context to attach order, subscriber, and line identifiers at API and worker entry points, then remove only those keys on close so unrelated context stays in place.
- What worked
- Put and remove were simple to wrap in an AutoCloseable helper. Leaving the rest of the context untouched was an obvious, well-supported pattern.