io.opentracing.contrib:opentracing-okhttp3

OpenTracing instrumentation for okhttp client

Лицензия

Лицензия

Группа

Группа

io.opentracing.contrib
Идентификатор

Идентификатор

opentracing-okhttp3
Последняя версия

Последняя версия

3.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

OpenTracing instrumentation for okhttp client

Скачать opentracing-okhttp3

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
io.opentracing : opentracing-api jar 0.33.0
io.opentracing.contrib : opentracing-concurrent jar 0.4.0

provided (1)

Идентификатор библиотеки Тип Версия
com.squareup.okhttp3 : okhttp jar 3.10.0

test (4)

Идентификатор библиотеки Тип Версия
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

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
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