io.opentracing.contrib:opentracing-apache-httpclient-parent

OpenTracing instrumentation for Apache HttpClient

Лицензия

Лицензия

Категории

Категории

CLI Взаимодействие с пользователем
Группа

Группа

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

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

opentracing-apache-httpclient-parent
Последняя версия

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

0.3.3
Дата

Дата

Тип

Тип

pom
Описание

Описание

io.opentracing.contrib:opentracing-apache-httpclient-parent
OpenTracing instrumentation for Apache HttpClient
Ссылка на сайт

Ссылка на сайт

https://github.com/opentracing-contrib/java-apache-httpclient
Система контроля версий

Система контроля версий

https://github.com/opentracing-contrib/java-apache-httpclient

Скачать opentracing-apache-httpclient-parent

Имя Файла Размер
opentracing-apache-httpclient-parent-0.3.3.pom 5 KB
Обзор

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

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

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

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

  • opentracing-apache-httpclient

Build Status Released Version

OpenTracing Apache HttpClient

Apache HttpClient instrumentation.

Configuration

GlobalTracer.register(tracer);
HttpClient httpClient = new TracingHttpClientBuilder()
    .build();

//custom configuration
HttpClient httpClient = new TracingHttpClientBuilder(
        redirectStrategy, 
        redirectHandlingDisabled,
        GlobalTracer.get(),
        spanDecorators)
    .build();

Linking to parent span

If parent span context is not passed created client spans will be in a new trace.

SpanManager

spanManager.activate(parentSpan); // called in the same thread as client.execute()
client.execute(new HttpGet("url"));

Manually

BasicHttpContext basicHttpContext = new BasicHttpContext();
basicHttpContext.setAttribute(Constants.PARENT_CONTEXT, parentSpan.context());
client.execute(new HttpGet("url"), basicHttpContext);

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

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

Версия
0.3.3
0.3.2
0.2.2
0.2.1
0.2.0
0.1.0
0.1.0-RC1
0.0.2
0.0.1