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.31.0</version>
</dependency>
<dependency>
<groupId>io.opencensus</groupId>
<artifactId>opencensus-contrib-http-jetty-client</artifactId>
<version>0.31.0</version>
</dependency>
</dependencies>
For Gradle add to your dependencies:
compile 'io.opencensus:opencensus-api:0.31.0'
compile 'io.opencensus:opencensus-contrib-http-jetty-client:0.31.0'
See http-client example. For build and run instruction click here.