-
Notifications
You must be signed in to change notification settings - Fork 881
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
Split out log4j appender #4907
Split out log4j appender #4907
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
plugins { | ||
id("otel.library-instrumentation") | ||
} | ||
|
||
dependencies { | ||
compileOnly("io.opentelemetry:opentelemetry-sdk-logs") | ||
|
||
library("org.apache.logging.log4j:log4j-core:2.13.2") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As nobody in its right mind is going to use this version of log4j, should we just start with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ya, I think this is the only instrumentation that targets a "patch" version too, will do this in follow-up 👍 |
||
|
||
testImplementation("io.opentelemetry:opentelemetry-sdk-logs") | ||
|
||
testImplementation("org.mockito:mockito-core") | ||
} |
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.
Should this module include
implementation(project("...:log4j-2.13.2:library"))
?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.
this case is a bit odd. the
autoconfigure
instrumentation doesn't enable the appender (library
) instrumentation. another option is to renamelibrary-autoconfigure
tolibrary-context-data
.... I'll open an issue to discuss and track