reactor-addons icon indicating copy to clipboard operation
reactor-addons copied to clipboard

Add-on to support MDC

Open ttddyy opened this issue 5 years ago • 1 comments

Motivation

When application gets certain size, MDC becomes one of the requirement for operational perspective. I think it is an area lacking a support now. People usually search how to achieve MDC and just copy paste the custom code into application. Instead of proliferating such code, it would be very beneficial to have official MDC support.

Desired solution

Here is implementation ideas for MDC support module:

  • Logging framework agnostic Spring has logic to auto detects major logging framework. Similar way would be nice to make the MDC support agnostic to user's choice of logging framework.

  • Feature registration The MDC propagation logic can be registered to a hook or even bytecode manipulated when the feature is enabled.

Additional context

Relates: https://github.com/reactor/reactor-core/issues/1985

ttddyy avatar Jan 19 '20 18:01 ttddyy

I am still searching for solution to support MDC in reactive programming, and came to this PR.

noah-iam avatar Aug 18 '20 18:08 noah-iam