What are ScopedValues and how do they replace ThreadLocal?
Replace logging MDC ThreadLocal with ScopedValue.where(REQUESTID, id).run(() -> handle()). Value immutable — update by nesting new scope. Frameworks...
What are ScopedValues and how do they replace ThreadLocal? · Home · Support the platform