Open
Description
In some scenarios, after using MDC.pushByKey(key, value)
to push a value into the deque (stack), we may need to retrieve the top value without popping the stack referenced by 'key', similar to a peekByKey
operation. However, the current SLF4J implementation requires developers to invoke getCopyOfDequeByKey(key)
and manually peek from the returned deque (stack), which involves creating a copy of the data structure and leads to unnecessary performance overhead. Would it be more efficient to add native support for peekByKey
in MDC to avoid this redundancy?
Thank you for your attention and support.
Metadata
Metadata
Assignees
Labels
No labels