-
Notifications
You must be signed in to change notification settings - Fork 1k
Add code attributes for log4j1 #13947
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
Conversation
|
/easycla |
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.
hi @oliver-zhang! can you add tests for this similar to those in log4j2?
Unit tests have been added |
...main/java/io/opentelemetry/javaagent/instrumentation/log4j/appender/v1_2/LogEventMapper.java
Show resolved
Hide resolved
hi @oliver-zhang, thanks for your patience, hopefully we should get #13860 merged in the next few days and then you can rebase and update your PR |
# Conflicts: # instrumentation/log4j/log4j-appender-1.2/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/log4j/appender/v1_2/LogEventMapper.java
...main/java/io/opentelemetry/javaagent/instrumentation/log4j/appender/v1_2/LogEventMapper.java
Outdated
Show resolved
Hide resolved
...javaagent/src/test/java/io/opentelemetry/instrumentation/log4j/appender/v1_2/Log4j1Test.java
Outdated
Show resolved
Hide resolved
import org.junit.jupiter.params.provider.Arguments; | ||
import org.junit.jupiter.params.provider.MethodSource; | ||
|
||
@SuppressWarnings("deprecation") // using deprecated semconv |
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.
[minor] probably not needed anymore
Hi @oliver-zhang, there are still a few test failures, for example in |
I've implemented the test fixes in oliver-zhang#1, so it should be mostly a matter of merging it to fix the remaining issues. Once this is done @oliver-zhang you should be able to mark it as ready for review and we should be able to merge it once all the checks are passing. |
Add the ability to get code attributes for log4j1