OpenTracing Spring Messaging instrumentation
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.mvn/wrapper
config/checkstyle
opentracing-spring-messaging-it
opentracing-spring-messaging-starter
opentracing-spring-messaging
travis
.gitignore
.settings.xml
.travis.yml
LICENSE
README.md
RELEASE.md
header.txt
mvnw
mvnw.cmd
pom.xml

README.md

Build Status Released Version

OpenTracing Spring Messaging

This repository provides OpenTracing instrumentation for various frameworks that use Spring Messaging (e.g. Spring Cloud Stream). It can be used with any OpenTracing compatible implementation. It implements Spring Messaging ChannelInterceptor interface and registers as a global channel interceptor.

Configuration

Note: make sure that an io.opentracing.Tracer bean is available. It is not provided by this library.

Spring Boot

Add the following starter dependency to your pom.xml:

<dependency>
  <groupId>io.opentracing.contrib</groupId>
  <artifactId>opentracing-spring-messaging-starter</artifactId>
</dependency>

Spring

Add the following dependency to your pom.xml:

<dependency>
  <groupId>io.opentracing.contrib</groupId>
  <artifactId>opentracing-spring-messaging</artifactId>
</dependency>

And register an interceptor bean:

@Bean
@GlobalChannelInterceptor
public OpenTracingChannelInterceptor openTracingChannelInterceptor(Tracer tracer) {
  return new OpenTracingChannelInterceptor(tracer);
}

Development

Maven checkstyle plugin is used to maintain consistent code style based on Google Style Guides

./mvnw clean install

Release

Follow instructions in RELEASE