Registry / observability / tracing-okhttp3

tracing-okhttp3

JSON →
library6.33.0javamavenunverified

Provides OkHttp3 integration for Palantir's distributed tracing library, enabling trace propagation in HTTP calls.

<dependency> <groupId>com.palantir.tracing</groupId> <artifactId>tracing-okhttp3</artifactId> <version>6.33.0</version> </dependency>
INSTALL
IMPORT
SIG · TRACING-OKHTTP3
T
tracing-okhttp3
observabilityjavav6.33.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

OkHttpTracingInterceptor
com.palantir.tracing.okhttp3.OkHttpTracingInterceptor

Adds tracing to OkHttp3 requests using OkHttpTracingInterceptor.

import com.palantir.tracing.okhttp3.OkHttpTracingInterceptor; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; public class Quickstart { public static void main(String[] args) throws Exception { OkHttpClient client = new OkHttpClient.Builder() .addInterceptor(OkHttpTracingInterceptor.INSTANCE) .build(); Request request = new Request.Builder().url("http://example.com").build(); Response response = client.newCall(request).execute(); System.out.println(response.code()); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
6.33.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
24
OpenAI (training)
1
Resources
tracing-okhttp3 — mvn dependency:get tracing-okhttp3 · libregistry