Exporting logs with MDC #13090
Unanswered
ofir-popowski
asked this question in
Q&A
Replies: 2 comments 6 replies
-
Try |
Beta Was this translation helpful? Give feedback.
6 replies
-
The docs in the repo suggests to use another logappender:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Spring Boot app and I've tried exporting logs using the java agent. This worked fine with the following JVM flags:
This has worked fine, but anything I change in
logback.xml
has no effect on the structure of the logs being exported, specifically any MDC fields I add (the[%mdc]
part in the pattern)I also tried adding these JVM flags, and they did nothing
Since that did not work, I tried switching to the Spring Boot starter instead and followed the getting started, added the following properties to
application.properties
:This just failed on
Failed to bind properties under 'otel' to io.opentelemetry.instrumentation.spring.autoconfigure.internal.properties.OtelSpringProperties:
So what am I missing? Either of these options would be okay with me, I just want my
logback.xml
format and MDC fields exportedBeta Was this translation helpful? Give feedback.
All reactions