• Home
Name Date Size #Lines LOC

..--

src/03-May-2024-1,084767

README.mdD03-May-20242 KiB5344

build.gradleD03-May-2024536 2216

README.md

1# OpenCensus Spring Sleuth
2[![Build Status][travis-image]][travis-url]
3[![Windows Build Status][appveyor-image]][appveyor-url]
4[![Maven Central][maven-image]][maven-url]
5
6The *OpenCensus Spring Sleuth for Java* is a library for automatically
7propagating the OpenCensus trace context when working with [Spring Sleuth][spring-sleuth-url].
8
9This is an __experimental component__, please bring feedback to
10https://gitter.im/census-instrumentation/Lobby not the usual
11sleuth channel https://gitter.im/spring-cloud/spring-cloud-sleuth.
12
13This version is compatible with [Spring Boot 1.5.x][spring-boot-1.5-url].
14
15## Quickstart
16
17### Add the dependencies to your project
18
19For Maven add to your `pom.xml`:
20```xml
21<dependencies>
22  <dependency>
23    <groupId>io.opencensus</groupId>
24    <artifactId>opencensus-contrib-spring-sleuth</artifactId>
25    <version>0.16.1</version>
26    <exclusions>
27      <exclusion>
28	    <groupId>org.springframework.cloud</groupId>
29	    <artifactId>spring-cloud-build</artifactId>
30	  </exclusion>
31	  <exclusion>
32	    <groupId>org.springframework.cloud</groupId>
33	    <artifactId>spring-cloud-starter-sleuth</artifactId>
34   	  </exclusion>
35    </exclusions>
36  </dependency>
37</dependencies>
38```
39
40For Gradle add to your dependencies:
41```gradle
42compile 'io.opencensus:opencensus-contrib-spring-sleuth:0.16.1'
43```
44
45[travis-image]: https://travis-ci.org/census-instrumentation/opencensus-java.svg?branch=master
46[travis-url]: https://travis-ci.org/census-instrumentation/opencensus-java
47[appveyor-image]: https://ci.appveyor.com/api/projects/status/hxthmpkxar4jq4be/branch/master?svg=true
48[appveyor-url]: https://ci.appveyor.com/project/opencensusjavateam/opencensus-java/branch/master
49[maven-image]: https://maven-badges.herokuapp.com/maven-central/io.opencensus/opencensus-contrib-spring-sleuth/badge.svg
50[maven-url]: https://maven-badges.herokuapp.com/maven-central/io.opencensus/opencensus-contrib-spring-sleuth
51[spring-boot-1.5-url]: https://github.com/spring-projects/spring-boot/tree/1.5.x
52[spring-sleuth-url]: https://github.com/spring-cloud/spring-cloud-sleuth
53