An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![Build Status][ci-img]][ci] [![Coverage Status][cov-img]][cov] [![Released Version][maven-img]][maven] [![Apache-2.0 license](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](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