io.opentracing.contrib:opentracing-vertx-web-parent

OpenTracing instrumentation for Vert.x Web

License

License

GroupId

GroupId

io.opentracing.contrib
ArtifactId

ArtifactId

opentracing-vertx-web-parent
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

pom
Description

Description

io.opentracing.contrib:opentracing-vertx-web-parent
OpenTracing instrumentation for Vert.x Web
Project URL

Project URL

https://github.com/opentracing-contrib/java-vertx-web
Source Code Management

Source Code Management

https://github.com/opentracing-contrib/java-vertx-web

Download opentracing-vertx-web-parent

How to add to project

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

Dependencies

test (3)

Group / Artifact Type Version
io.opentracing : opentracing-util jar 0.33.0
io.opentracing : opentracing-mock jar 0.33.0
junit : junit jar 4.12

Project Modules

  • opentracing-vertx-web

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