objectiser / java-okhttp

OpenTracing Okhttp client instrumentation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 = TracingInerceptor.addTracing(new OkHttpClient.Builder(), tracer)
client.newCall(request)...

Development

./mvnw clean install

Release

Follow instructions in RELEASE

About

OpenTracing Okhttp client instrumentation

License:Apache License 2.0


Languages

Language:Java 68.7%Language:Shell 21.4%Language:Batchfile 9.9%