Skip to content

PlaytikaOSS/sleuth-camel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI codecov Codacy Badge Maven Central

Sleuth-camel library

If you are using camel along with spring boot and willing to have your routes to be traced - this library is what you need.

Usage

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:

  • Spring Boot 1.5.x: sleuth-camel-core 1.x.
  • Spring Boot 2.0.x-2.3.x: sleuth-camel-core 2.0.x.
  • Spring Boot 2.4+: sleuth-camel-core 2.1.x.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages