-
Notifications
You must be signed in to change notification settings - Fork 910
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
Fix adding logback mdc appender in spring starter #13391
Fix adding logback mdc appender in spring starter #13391
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.
I'm wondering if there is an easier solution - but I don't have a concrete idea.
...nstrumentation/spring/autoconfigure/internal/instrumentation/logging/CustomListAppender.java
Outdated
Show resolved
Hide resolved
...entation/spring/autoconfigure/internal/instrumentation/logging/LogbackAppenderInstaller.java
Outdated
Show resolved
Hide resolved
@@ -132,6 +132,7 @@ testing { | |||
implementation("org.springframework.boot:spring-boot-autoconfigure:$springBootVersion") | |||
|
|||
implementation(project(":instrumentation:logback:logback-appender-1.0:library")) | |||
compileOnly(project(":instrumentation:logback:logback-mdc-1.0: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.
I didn't follow how this compileOnly
dep is used?
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.
I changed the scope to implementation
, hopefully that is less confusing. A class from the logback-mdc-1.0:library
is used in a test so it is needed to compile the test, I think it gets added to runtime dependencies because the main project depends on it and the suite depends on the main project.
Resolves #13383