ffbilsel opened a new issue, #4981:
URL: https://github.com/apache/camel-quarkus/issues/4981
### Bug description
Hello. We use camel kafka quarkus in our project with these dependencies
`<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-opentelemetry</artifactId>
</dependency> `
`<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-opentelemetry</artifactId>
</dependency>`
And the logger is configured in the application.properties file by this line
`%quarkus.log.console.format=%d{HH:mm:ss} %-5p traceId=%X{traceId},
spanId=%X{spanId} [%c{2.}] (%t) %s%e%n`
Since I added the `camel-quarkus-opentelemetry` dependency, I see a trace
created when a camel route is triggered (using jaeger). But all the logs that
are created has empty traceId and spanId.
Sample code from our apllication :
`@ApplicationScoped
public class Routes extends RouteBuilder {
@Override
public void configure() throws Exception {
from("kafka:{{kafka.x.in.topic.name}}").routeId("x")
.log("Received : \"${body}\"").etc
}`
Sample output:
`12:48:13 INFO traceId=, spanId= [x] (Camel (camel-1) thread #17 -
KafkaConsumer[x.topic.in]) Received : "{
"payload": {
...
},
"time": "2023-06-05T07:00:07Z"
}"`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]