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

Create an MDC to clearly extract the request ids set by the RequestHeaderFilter. #142

Open
DawidNiezgodka opened this issue Nov 14, 2022 · 0 comments
Labels
area/core Relates to core functionality of Quick type/enhancement New feature or request

Comments

@DawidNiezgodka
Copy link
Contributor

The mechanism for assigning a unique request id to each incoming request is provided (see RequestHeaderFilter). However, we still need a solution to clearly extract the request ids. One of the ideas is to set up an MDC, which "provides a way to enrich log messages with information that could be unavailable in the scope where the logging actually occurs [1]"

Example of setting MDC with Micronaut and slf4j

@DawidNiezgodka DawidNiezgodka added type/enhancement New feature or request area/core Relates to core functionality of Quick labels Nov 14, 2022
@DawidNiezgodka DawidNiezgodka added this to the Tracing and logging milestone Nov 14, 2022
@DawidNiezgodka DawidNiezgodka self-assigned this Nov 14, 2022
@DawidNiezgodka DawidNiezgodka moved this to Todo in Quick Nov 14, 2022
@DawidNiezgodka DawidNiezgodka moved this from Todo to In Progress in Quick Nov 14, 2022
@DawidNiezgodka DawidNiezgodka moved this from In Progress to Todo in Quick Nov 17, 2022
@DawidNiezgodka DawidNiezgodka removed their assignment Nov 26, 2022
@raminqaf raminqaf removed the status in Quick Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core Relates to core functionality of Quick type/enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant