https://github.com/opentracing-contrib/java-spring-messaging
OpenTracing Spring Messaging instrumentation
https://github.com/opentracing-contrib/java-spring-messaging
messaging opentracing spring-messaging spring-stream tracing
Last synced: 10 months ago
JSON representation
OpenTracing Spring Messaging instrumentation
- Host: GitHub
- URL: https://github.com/opentracing-contrib/java-spring-messaging
- Owner: opentracing-contrib
- License: apache-2.0
- Created: 2017-12-18T13:51:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-09-14T12:18:52.000Z (over 5 years ago)
- Last Synced: 2025-08-03T21:43:20.314Z (10 months ago)
- Topics: messaging, opentracing, spring-messaging, spring-stream, tracing
- Language: Java
- Homepage:
- Size: 153 KB
- Stars: 3
- Watchers: 6
- Forks: 11
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status][ci-img]][ci] [![Released Version][maven-img]][maven]
# 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:
```xml
io.opentracing.contrib
opentracing-spring-messaging-starter
```
### Spring
Add the following dependency to your pom.xml:
```xml
io.opentracing.contrib
opentracing-spring-messaging
```
And register an interceptor bean:
```java
@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](https://github.com/google/styleguide)
```shell
./mvnw clean install
```
## Release
Follow instructions in [RELEASE](RELEASE.md)
[ci-img]: https://travis-ci.org/opentracing-contrib/java-spring-messaging.svg?branch=master
[ci]: https://travis-ci.org/opentracing-contrib/java-spring-messaging
[maven-img]: https://img.shields.io/maven-central/v/io.opentracing.contrib/opentracing-spring-messaging.svg?maxAge=2592000
[maven]: http://search.maven.org/#search%7Cga%7C1%7Copentracing-spring-messaging