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

reorganize the logback instrumentation to avoid stack overflows, fixes #1212 #1220

Merged
merged 2 commits into from
Oct 26, 2022

Conversation

ivantopo
Copy link
Contributor

Instead of using an interceptor where we end up with calls to the super class, we are using an advice that overrides map returned by ch.qos.logback.classic.util.LogbackMDCAdapter#getPropertyMap.

This makes the same instrumentation work with logback 1.2.x, 1.3.x, and 1.4.x.

@ivantopo ivantopo merged commit 5cf9653 into kamon-io:master Oct 26, 2022
nvollmar added a commit to nvollmar/Kamon that referenced this pull request Jan 18, 2023
ivantopo pushed a commit that referenced this pull request Jan 24, 2023
* Revert "append MDC keys, even if the MDC is empty. Fixes #1225 (#1227)"

This reverts commit e10cba2.

* Revert "reorganize the logback instrumentation to avoid stack overflows, fixes #1212 (#1220)"

This reverts commit 5cf9653.

* Fixes instrumentation for Logback 1.4.x
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.

1 participant