You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix javaagent AsyncLogger tests to expect code location attributes
The javaagent auto-instruments Log4j2 and enables code location capture,
which works even with AsyncLogger. Updated addCodeLocationAttributes() to:
- Always return code location for javaagent tests
- Only skip for library AsyncLogger tests with older dependencies
All tests now pass:
- javaagent testAsync: ✓ (expects code location)
- library test: ✓ (expects code location)
- library testAsyncLogger: ✓ (no code location for older deps)
Copy file name to clipboardExpand all lines: instrumentation/log4j/log4j-appender-2.17/testing/src/main/java/io/opentelemetry/instrumentation/log4j/appender/v2_17/AbstractLog4j2Test.java
0 commit comments