io.opentracing.contrib:opentracing-okhttp-parent

OpenTracing instrumentation for okhttp client

License

License

GroupId

GroupId

io.opentracing.contrib
ArtifactId

ArtifactId

opentracing-okhttp-parent
Last Version

Last Version

3.0.0
Release Date

Release Date

Type

Type

pom
Description

Description

io.opentracing.contrib:opentracing-okhttp-parent
OpenTracing instrumentation for okhttp client
Project URL

Project URL

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

Source Code Management

https://github.com/opentracing-contrib/java-okhttp

Download opentracing-okhttp-parent

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • opentracing-okhttp3

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