If you are using camel along with spring boot and willing to have your routes to be traced - this library is what you need.
In order to integrate functionality provided by this library tou need to add following dependency:
<dependency>
<groupId>com.playtika.sleuth</groupId>
<artifactId>sleuth-camel-core</artifactId>
</dependency>
And that is pretty all, library contains spring boot auto-configuration which will do the magic with your camel context for you. If for some reason integration should be disabled - just add following property:
spring.sleuth.camel.enabled=false
Planning to use threads() dsl in camel route? Use TraceableExecutorService
TraceableExecutorService traceableExecutorService = new TraceableExecutorService(beanFactory, executorService);
from(kafkaProperties)
.threads()
.executorService(traceableExecutorService)
.routeId(ROUTE_ID)
Version correspondence: