The OpenCensus Jetty HttpClient for Java is a wrapper for trace instrumentation when using Jetty as HTTP client.
For Maven add to your pom.xml:
<dependencies> <dependency> <groupId>io.opencensus</groupId> <artifactId>opencensus-api</artifactId> <version>0.28.3</version> </dependency> <dependency> <groupId>io.opencensus</groupId> <artifactId>opencensus-contrib-http-jetty-client</artifactId> <version>0.28.3</version> </dependency> </dependencies>
For Gradle add to your dependencies:
compile 'io.opencensus:opencensus-api:0.28.3' compile 'io.opencensus:opencensus-contrib-http-jetty-client:0.28.3'
See http-client example. For build and run instruction click here.