io.opentracing.contrib:opentracing-spring-messaging

OpenTracing instrumentation for Spring Messaging

License

License

Categories

Categories

Messaging Application Layer Libs
GroupId

GroupId

io.opentracing.contrib
ArtifactId

ArtifactId

opentracing-spring-messaging
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

OpenTracing instrumentation for Spring Messaging

Download opentracing-spring-messaging

How to add to project

<!-- https://jarcasting.com/artifacts/io.opentracing.contrib/opentracing-spring-messaging/ -->
<dependency>
    <groupId>io.opentracing.contrib</groupId>
    <artifactId>opentracing-spring-messaging</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.opentracing.contrib/opentracing-spring-messaging/
implementation 'io.opentracing.contrib:opentracing-spring-messaging:1.0.0'
// https://jarcasting.com/artifacts/io.opentracing.contrib/opentracing-spring-messaging/
implementation ("io.opentracing.contrib:opentracing-spring-messaging:1.0.0")
'io.opentracing.contrib:opentracing-spring-messaging:jar:1.0.0'
<dependency org="io.opentracing.contrib" name="opentracing-spring-messaging" rev="1.0.0">
  <artifact name="opentracing-spring-messaging" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.opentracing.contrib', module='opentracing-spring-messaging', version='1.0.0')
)
libraryDependencies += "io.opentracing.contrib" % "opentracing-spring-messaging" % "1.0.0"
[io.opentracing.contrib/opentracing-spring-messaging "1.0.0"]

Dependencies

compile (3)

Group / Artifact Type Version
io.opentracing : opentracing-api Optional jar 0.33.0
org.springframework.integration : spring-integration-core Optional jar
org.springframework : spring-messaging Optional jar

test (6)

Group / Artifact Type Version
junit : junit jar
org.springframework.boot : spring-boot-starter-test jar
org.mockito : mockito-core jar
org.assertj : assertj-core jar
io.opentracing : opentracing-mock jar 0.33.0
io.opentracing : opentracing-util jar 0.33.0

Project Modules

There are no modules declared in this project.

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

io.opentracing.contrib

3rd-Party OpenTracing API Contributions

3rd-party contributions that use OpenTracing. **The repositories in this org are *not* affiliated with the CNCF.**

Versions

Version
1.0.0
0.1.2
0.1.1
0.1.0
0.0.5
0.0.3
0.0.2