Replies: 2 comments 2 replies
-
hi @Giovarco! it looks like you are using micrometer-tracing, so I'd recommend asking in that project |
Beta Was this translation helpful? Give feedback.
-
You problem could be that you have not installed With the OpenTelemetry starter, you can have the Logback appender configured without any configuration (for example, you don't need to add the For the OpenTelemetry Java agent, you have an automatic instrumentation for Logback. If you are searching to enable some log attributes with the Java agent, you can look at https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/logback/logback-appender-1.0/javaagent/README.md#settings-for-the-logback-appender-instrumentation |
Beta Was this translation helpful? Give feedback.
-
Hello people,
My current setup is: a Spring Boot app (version 3.1.5) with Micrometer, sending traces, metrics and (ideally) all logs to an otel/opentelemetry-collector-contrib Docker container.
Everything seems working, except I cannot manage to make the Spring Boot app send logs to the OTEL collector.
As I couldn't find very clear instructions on how to do this, I'm just putting things together, for example from these two and others:
#7723
https://github.com/ff-sdesai/distributed-tracing-spring/blob/ee36dcd78ce9c0b517355642af3c5e0b8b6d67d0/spring-cloud-sleuth-otel-slf4j/src/main/resources/logback.xml#L17
and hope that it works... but it doesn't, therefore I'm here:
application.yml
logback.xml
pom.xml
NOTE: I wondering if this issue is related but not caused by the lack of spanid and traceid in some logs. None of them have them, except for example when I log inside a custom span. This is an example of class trying different features including creating spans:
TestApi.java
config.yaml
Beta Was this translation helpful? Give feedback.
All reactions