2.0 KiB
2.0 KiB
OpenCensus Spring Sleuth
The OpenCensus Spring Sleuth for Java is a library for automatically propagating the OpenCensus trace context when working with Spring Sleuth.
This is an experimental component, please bring feedback to https://gitter.im/census-instrumentation/Lobby not the usual sleuth channel https://gitter.im/spring-cloud/spring-cloud-sleuth.
This version is compatible with Spring Boot 1.5.x.
Quickstart
Add the dependencies to your project
For Maven add to your pom.xml
:
<dependencies>
<dependency>
<groupId>io.opencensus</groupId>
<artifactId>opencensus-contrib-spring-sleuth</artifactId>
<version>0.16.1</version>
<exclusions>
<exclusion>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-build</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sleuth</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
For Gradle add to your dependencies:
compile 'io.opencensus:opencensus-contrib-spring-sleuth:0.16.1'