-
Notifications
You must be signed in to change notification settings - Fork 0
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
Log correlation for JBoss LogManager #5
Log correlation for JBoss LogManager #5
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this addition!!
I wouldn't add it this way though. I would like to have only one JBoss logging module nested under the general logging plugin. I believe that the issue here is that you need to use a different (older) dependency in order to test that. What I would do then is just add the instrumentation to the existing apm-jboss-plugin
module and add the test, but not run it directly, but as a TestClassWithDependencyRunner
, similarly to how log4j 2.6 is tested.
Another alternative is to add submudules under a common JBoss logging module.
However you decide to do that, these would be the requirements:
- Have one JBoss logging module under
apm-logging-plugin
- Make this addition as minimal as possible, including sharing as much code as possible between the two tests. They are pretty much identical, apart from how the way you get the log.
In addition, can't we share the instrumentation helper code, only updating org.jboss.logmanager.MDC
instead of org.jboss.logging.MDC
? If so, this logic should be shared as well.
.../java/co/elastic/apm/agent/jbosslogmanager/correlation/JBossLogManagerCorrelationHelper.java
Outdated
Show resolved
Hide resolved
@tobiasstadler needless to say, if you prefer I'll take it from here- just let me know. |
@eyalkoren Sorry for the long delay. JBoss Logging and JBoss LogManager are two distinct things. JBoss Logging is mostly a logging facade similar to slf4j, while JBoss LogManager is an actual logging implementation which can act as a backend for JBoss Logging. But there are also adapters for e.g log4j1, log4j2 or slf4j. Maybe we should remove Instrumentation for JBoss logging and only keep one for JBoss LogManager? |
Extremely long - one day! I started to get worried 😜
Right, this use case should be covered through the instrumentation of
Currently, this is our way to support JBoss-logging+JUL, which is the default
OK, then it makes sense to be in a separate module, but please nest both modules under one JBoss logging module for now. Once we get to the JUL correlation task we will check whether we can remove the current instrumentation and if that would be the case, we'll eliminate the redundant plugin level from the module hierarchy. |
Ok, so both Instrumentations should be in What do you think about dropping support for |
Yes
Yes, it would be good enough, even though theoretically they can be used together, but if the need arises, we can separate them later |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even better - together at the same module.
Thanks!
No description provided.