You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current implementation of MDCAdapter in logback i.e. LogbackMDCAdapter relies on ThreadLocal. It is advised to not use ThreadLocal in case of Virtual threads. This article states Don't Cache Expensive Reusable Objects in Thread-Local Variables.
I was wondering if it's possible to design a new adapter which doesn't use ThreadLocal. If not possible currently at least I wanted to initiate a discussion around it as I currently don't see any. Was wondering if we can utilise ScopedValuesJEP446 could be used in this case.
The text was updated successfully, but these errors were encountered:
Current implementation of
MDCAdapter
in logback i.e.LogbackMDCAdapter
relies onThreadLocal
. It is advised to not useThreadLocal
in case of Virtual threads. This article statesDon't Cache Expensive Reusable Objects in Thread-Local Variables
.I was wondering if it's possible to design a new adapter which doesn't use
ThreadLocal
. If not possible currently at least I wanted to initiate a discussion around it as I currently don't see any. Was wondering if we can utiliseScopedValues
JEP446 could be used in this case.The text was updated successfully, but these errors were encountered: