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

Put parentId from trace context into MDC #12618

Merged
merged 1 commit into from
Oct 9, 2020
Merged

Conversation

dusik66
Copy link
Contributor

@dusik66 dusik66 commented Oct 9, 2020

Modern microservices depens on asynchronous calls. Every call usually creates new span. Because of asynchronity the log messages are mixed. To be able to track the calls correctly the information about parent span is needed. This parent span is represented by parentId.

This commit adds parentId to the MDC to enable insert it in the log messages.

@gsmet gsmet changed the title Put parentId from trace context into MDC 🎅🎄🎁 Put parentId from trace context into MDC Oct 9, 2020
@gsmet
Copy link
Member

gsmet commented Oct 9, 2020

Thanks for this. Could you remove the emojis from the commit message, please? We don't want our commit history to look like a Christmas tree :).

/cc @jmartisk

@dusik66
Copy link
Contributor Author

dusik66 commented Oct 9, 2020

Thanks for this. Could you remove the emojis from the commit message, please? We don't want our commit history to look like a Christmas tree :).

/cc @jmartisk

Christmas tree is away. It was copied from original commit. :)

Copy link
Contributor

@jmartisk jmartisk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat! Thanks!

@gsmet
Copy link
Member

gsmet commented Oct 9, 2020

@jmartisk it looks like something we could backport to 1.9? Am I right?

@jmartisk
Copy link
Contributor

jmartisk commented Oct 9, 2020

@gsmet Yeah, why not.

@jmartisk jmartisk merged commit 7b3c4e7 into quarkusio:master Oct 9, 2020
@gsmet gsmet added this to the 1.9.0.Final milestone Oct 10, 2020
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

Successfully merging this pull request may close these issues.

3 participants