io.opentracing.contrib:opentracing-vertx-web

OpenTracing instrumentation for Vert.x Web

License

License

GroupId

GroupId

io.opentracing.contrib
ArtifactId

ArtifactId

opentracing-vertx-web
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

OpenTracing instrumentation for Vert.x Web

Download opentracing-vertx-web

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
io.opentracing : opentracing-api jar 0.33.0
io.vertx : vertx-web jar 3.4.2

test (6)

Group / Artifact Type Version
org.awaitility : awaitility jar 3.0.0
io.vertx : vertx-web test-jar 3.4.2
io.vertx : vertx-core test-jar 3.4.2
io.opentracing : opentracing-util jar 0.33.0
io.opentracing : opentracing-mock jar 0.33.0
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Build Status Released Version

OpenTracing Vert.x Web Instrumentation

OpenTracing instrumentation for Vert.x Web project. This repository currently contains handler which traces server requests.

Configuration

Router router = Router.router(vertx);

TracingHandler handler = new TracingHandler(tracer);
router.route()
        .order(-1).handler(handler)
        .failureHandler(handler);

Accessing server span context

Because Vert.x is event loop based, thread local implementations of span source do not work. The current solution is to get span context from RoutingContext and then pass it manually around.

SpanContext serverContext = TracingHandler.serverSpanContext(routingContext);

Development

./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.0
0.0.1