Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add-on to support MDC #219

Open
ttddyy opened this issue Jan 19, 2020 · 1 comment
Open

Add-on to support MDC #219

ttddyy opened this issue Jan 19, 2020 · 1 comment

Comments

@ttddyy
Copy link

ttddyy commented Jan 19, 2020

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: reactor/reactor-core#1985

@noah-iam
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants