I have a sample spring boot application and I am trying to export the logs to a collector which is setup in localhost:8060 using open telemetry spring boot starter
I added the following open telemetry dependencies
dependencyManagement {
imports {
mavenBom 'io.opentelemetry:opentelemetry-bom:1.33.0'
mavenBom 'io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:1.32.0-alpha'
}
}
implementation "io.opentelemetry.instrumentation:opentelemetry-spring-boot-starter:1.32.0-alpha"
runtimeOnly "io.opentelemetry.instrumentation:opentelemetry-logback-mdc-1.0:1.32.0-alpha"
I also added a custom logback-spring.xml file as per https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/logback/logback-mdc-1.0/library
However when I run the spring boot application I can see that it tries to export metrics and traces but not logs. does anyone know how can I export spring boot logs using open telemetry manual instrumentation ?