Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

opentracing-contrib/java-okhttp

Open more actions menu

Repository files navigation

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

About

OpenTracing Okhttp client instrumentation

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6

Morty Proxy This is a proxified and sanitized view of the page, visit original site.