Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 596 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 596 Bytes

brave-instrumentation-httpclient

This module contains a tracing decorator for Apache HttpClient 4.4+. TracingHttpClientBuilder adds trace headers to outgoing requests. It then reports to Zipkin how long each request takes, along with relevant tags like the http url.

To enable tracing, create your client using TracingHttpClientBuilder.

httpclient = TracingHttpClientBuilder.create(tracing).build();

You can also use TracingCachingHttpClientBuilder if you depend on org.apache.httpcomponents:httpclient-cache