https://github.com/opentracing-contrib/java-asynchttpclient
OpenTracing Instrumentation for https://github.com/AsyncHttpClient/async-http-client
https://github.com/opentracing-contrib/java-asynchttpclient
asynchttpclient java opentracing
Last synced: 12 months ago
JSON representation
OpenTracing Instrumentation for https://github.com/AsyncHttpClient/async-http-client
- Host: GitHub
- URL: https://github.com/opentracing-contrib/java-asynchttpclient
- Owner: opentracing-contrib
- License: apache-2.0
- Created: 2016-11-21T23:42:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-10-13T12:35:33.000Z (over 5 years ago)
- Last Synced: 2025-04-04T22:11:33.468Z (about 1 year ago)
- Topics: asynchttpclient, java, opentracing
- Language: Java
- Homepage: https://opentracing.io
- Size: 128 KB
- Stars: 4
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status][ci-img]][ci] [![Coverage Status][cov-img]][cov] [![Released Version][maven-img]][maven] [](https://opensource.org/licenses/Apache-2.0)
OpenTracing Instrumentation for org.asynchttpclient
## Requirements
- [AsyncHttpClient](https://github.com/AsyncHttpClient/async-http-client) >= 2.0.0
- [OpenTracing Java](https://github.com/opentracing/opentracing-java) = 0.32.0
## Installation
Releases are hosted on Maven Central.
pom.xml
```xml
io.opentracing.contrib
opentracing-asynchttpclient
VERSION
```
## Usage
```java
// Instantiate tracer
Tracer tracer = ...
// Build TracingAsyncHttpClient
AsyncHttpClient client = new TracingAsyncHttpClient(tracer);
// By default spans are always created
// To trace only if there is an active span
// Build TracingAsyncHttpClient with optional parameter set to true
AsyncHttpClient client = new TracingAsyncHttpClient(tracer, true);
```
## License
[Apache 2.0 License](./LICENSE).
[ci-img]: https://travis-ci.org/opentracing-contrib/java-asynchttpclient.svg?branch=master
[ci]: https://travis-ci.org/opentracing-contrib/java-asynchttpclient
[cov-img]: https://coveralls.io/repos/github/opentracing-contrib/java-asynchttpclient/badge.svg?branch=master
[cov]: https://coveralls.io/github/opentracing-contrib/java-asynchttpclient?branch=master
[maven-img]: https://img.shields.io/maven-central/v/io.opentracing.contrib/opentracing-asynchttpclient.svg
[maven]: http://search.maven.org/#search%7Cga%7C1%7Copentracing-asynchttpclient