-
Notifications
You must be signed in to change notification settings - Fork 328
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
Logback instrumentation broken with with logback-classic 1.4.x #1251
Comments
@ivantopo I've reverted back to the original intercept implementation but switched interception to
This seems to work reliably on both Logback 1.2.10 and 1.4.5 |
Hey @nvollmar, thanks so much for bringing this up! Just to be sure on something, did you have this issue even when using the setting included on #1236? That would be:
There were some random problems due to initialization order, but those should have been fixed after adding this setting. |
@nvollmar see this comment too: #1234 (comment) |
@ivantopo We don’t use play, we build directly on plain Akka. |
Thanks for sharing @nvollmarl, I gave it a try on a few applications locally and worked as expected 💪 |
Fixed in #1252 |
The new implementation which addressed #1212 does not properly work.
I've extended an internal test and there is about 50/50 chance that the mdc values are attached to the log or not. On deployed systems we see a similar behaviour.
The new
LogbackMDCAdapter
implementation uses two thread locals to store the MDC map, andgetPropertyMap
is only one entry point for it. There are alsoget
/getKeys
andput
to access those properties.I'm not yet sure where it exactly fails, but it seems to at least work when the property map is not yet set:
(This is a stack trace where it worked, I copied over the latest implementation to play around)
The text was updated successfully, but these errors were encountered: