io.opentracing.contrib:opentracing-grizzly-ahc

OpenTracing Instrumentation for Grizzly AsyncHttpClient

License

License

Categories

Categories

Grizzly Net Networking
GroupId

GroupId

io.opentracing.contrib
ArtifactId

ArtifactId

opentracing-grizzly-ahc
Last Version

Last Version

0.1.3
Release Date

Release Date

Type

Type

jar
Description

Description

io.opentracing.contrib:opentracing-grizzly-ahc
OpenTracing Instrumentation for Grizzly AsyncHttpClient
Project URL

Project URL

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

Source Code Management

https://github.com/opentracing-contrib/java-grizzly-ahc

Download opentracing-grizzly-ahc

How to add to project

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

Dependencies

provided (5)

Group / Artifact Type Version
io.opentracing : opentracing-api jar 0.32.0
io.opentracing : opentracing-util jar 0.32.0
net.bytebuddy : byte-buddy jar 1.9.13
net.bytebuddy : byte-buddy-agent jar 1.9.13
org.glassfish.grizzly : grizzly-http-client jar 1.15

test (4)

Group / Artifact Type Version
io.opentracing : opentracing-mock jar 0.32.0
junit : junit jar 4.12
org.glassfish.grizzly : grizzly-framework jar 2.3.35
org.glassfish.grizzly : grizzly-http-server jar 2.3.35

Project Modules

There are no modules declared in this project.

OpenTracing Grizzly Async HTTP Client Instrumentation

OpenTracing instrumentation for Grizzly Async HTTP Client.

OpenTracing Agents

When using a runtime agent like java-agent or java-specialagent AsyncHttpClients will be automatically instrumented by injecting a TracingRequestFilter into its AsyncHttpClientConfig. This is the case with the plain AsyncHttpClient or SimpleAsyncHttpClient:

AsyncHttpClient client = new AsyncHttpClient();
Response response = client.prepareGet("http://localhost:8080/root").execute().get();

or

SimpleAsyncHttpClient client = new SimpleAsyncHttpClient.Builder()
 .setUrl("http://localhost:8080/root")
 .build();

Response respose = client.get().get();

Refer to the agents' documentation for how to include this library as an instrumentation plugin.

Non-Agent Configuration

When not using any of the OpenTracing Agents the TracingRequestFiler must be added directly to the AsyncHttpClientConfig.

AsyncHttpClientConfig config = new AsyncHttpClientConfig.Builder()
        .addRequestFilter(new TracingRequestFilter())
        .build();

AsyncHttpClient client = new AsyncHttpClient(config);
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.1.3
0.1.2
0.1.1
0.1.0