io.opentracing.contrib:asynchttpclient-opentracing

OpenTracing Instrumentation for AsyncHttpClient

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

io.opentracing.contrib
ArtifactId

ArtifactId

asynchttpclient-opentracing
Last Version

Last Version

0.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

io.opentracing.contrib:asynchttpclient-opentracing
OpenTracing Instrumentation for AsyncHttpClient
Project URL

Project URL

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

Source Code Management

http://github.com/opentracing-contrib/java-asynchttpclient

Download asynchttpclient-opentracing

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.asynchttpclient : async-http-client jar 2.8.1
io.opentracing : opentracing-api jar 0.32.0

test (3)

Group / Artifact Type Version
io.opentracing : opentracing-mock jar 0.32.0
junit : junit jar 4.12
com.github.tomakehurst : wiremock-standalone jar 2.22.0

Project Modules

There are no modules declared in this project.

Build Status Coverage Status Released Version Apache-2.0 license

OpenTracing Instrumentation for org.asynchttpclient

Requirements

Installation

Releases are hosted on Maven Central.

pom.xml

<dependency>
    <groupId>io.opentracing.contrib</groupId>
    <artifactId>opentracing-asynchttpclient</artifactId>
    <version>VERSION</version>
</dependency>

Usage

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

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
0.3.0
0.1.0