Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opentracing-contrib/java-vertx-web
OpenTracing instrumentation for Vert.x web package
https://github.com/opentracing-contrib/java-vertx-web
opentracing tracing vertx vertx-web
Last synced: about 2 months ago
JSON representation
OpenTracing instrumentation for Vert.x web package
- Host: GitHub
- URL: https://github.com/opentracing-contrib/java-vertx-web
- Owner: opentracing-contrib
- License: apache-2.0
- Created: 2017-06-29T15:01:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-16T12:44:33.000Z (over 4 years ago)
- Last Synced: 2024-11-14T17:09:23.301Z (about 2 months ago)
- Topics: opentracing, tracing, vertx, vertx-web
- Language: Java
- Homepage:
- Size: 79.1 KB
- Stars: 21
- Watchers: 7
- Forks: 17
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status][ci-img]][ci] [![Released Version][maven-img]][maven]
# OpenTracing Vert.x Web Instrumentation
OpenTracing instrumentation for Vert.x Web project. This repository currently contains
handler which traces server requests.## Configuration
```java
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.
```java
SpanContext serverContext = TracingHandler.serverSpanContext(routingContext);
```## Development
```shell
./mvnw clean install
```## Release
Follow instructions in [RELEASE](RELEASE.md)[ci-img]: https://travis-ci.org/opentracing-contrib/java-vertx-web.svg?branch=master
[ci]: https://travis-ci.org/opentracing-contrib/java-vertx-web
[maven-img]: https://img.shields.io/maven-central/v/io.opentracing.contrib/opentracing-vertx-web.svg?maxAge=2592000
[maven]: http://search.maven.org/#search%7Cga%7C1%7Copentracing-vertx-web