io.opentracing.contrib:opentracing-okhttp3

OpenTracing instrumentation for okhttp client

License

License

GroupId

GroupId

io.opentracing.contrib
ArtifactId

ArtifactId

opentracing-okhttp3
Last Version

Last Version

3.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

OpenTracing instrumentation for okhttp client

Download opentracing-okhttp3

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
io.opentracing : opentracing-api jar 0.33.0
io.opentracing.contrib : opentracing-concurrent jar 0.4.0

provided (1)

Group / Artifact Type Version
com.squareup.okhttp3 : okhttp jar 3.10.0

test (4)

Group / Artifact Type Version
com.squareup.okhttp3 : mockwebserver jar 3.10.0
io.opentracing : opentracing-mock jar 0.33.0
io.opentracing : opentracing-util jar 0.33.0
org.awaitility : awaitility jar 3.0.0

Project Modules

There are no modules declared in this project.

Build Status Released Version

OpenTracing OkHttp Client Instrumentation

OpenTracing instrumentation for OkHttp client.

Configuration

Preferred way how to instrument OkHttpClient is to use TracingCallFactory:

Call.Factory client = new TracingCallFactory(okHttpClient, tracer);
client.newCall(request)...

or use OkHttpClient directly. However when doing multiple async requests simultaneously, parent spans created before invoking the client are not properly inferred.

OkHttpClient client = TracingInterceptor.addTracing(new OkHttpClient.Builder(), tracer)
client.newCall(request)...

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
3.0.0
2.0.1
2.0.0
0.1.0
0.1.0-RC1
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1