Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
src/ | H | 25-Apr-2025 | - | 569 | 373 | |
README.md | H A D | 25-Apr-2025 | 1.9 KiB | 47 | 37 | |
build.gradle | H A D | 25-Apr-2025 | 736 | 26 | 19 |
README.md
1# OpenCensus Jetty HttpClient 2[![Build Status][travis-image]][travis-url] 3[![Windows Build Status][appveyor-image]][appveyor-url] 4[![Maven Central][maven-image]][maven-url] 5 6The *OpenCensus Jetty HttpClient for Java* is a wrapper for trace instrumentation when using Jetty as HTTP client. 7 8## Quickstart 9 10### Add the dependencies to your project 11 12For Maven add to your `pom.xml`: 13```xml 14<dependencies> 15 <dependency> 16 <groupId>io.opencensus</groupId> 17 <artifactId>opencensus-api</artifactId> 18 <version>0.28.3</version> 19 </dependency> 20 <dependency> 21 <groupId>io.opencensus</groupId> 22 <artifactId>opencensus-contrib-http-jetty-client</artifactId> 23 <version>0.28.3</version> 24 </dependency> 25</dependencies> 26``` 27 28For Gradle add to your dependencies: 29```groovy 30compile 'io.opencensus:opencensus-api:0.28.3' 31compile 'io.opencensus:opencensus-contrib-http-jetty-client:0.28.3' 32``` 33 34## Instrumenting Jetty Http Client 35 36See [http-client][httpclient-code] example. For build and run instruction click [here][httpclient-run]. 37 38 39[travis-image]: https://travis-ci.org/census-instrumentation/opencensus-java.svg?branch=master 40[travis-url]: https://travis-ci.org/census-instrumentation/opencensus-java 41[appveyor-image]: https://ci.appveyor.com/api/projects/status/hxthmpkxar4jq4be/branch/master?svg=true 42[appveyor-url]: https://ci.appveyor.com/project/opencensusjavateam/opencensus-java/branch/master 43[maven-image]: https://maven-badges.herokuapp.com/maven-central/io.opencensus/opencensus-contrib-http-jetty-client/badge.svg 44[maven-url]: https://maven-badges.herokuapp.com/maven-central/io.opencensus/opencensus-contrib-jetty-client 45[httpclient-code]: https://github.com/census-instrumentation/opencensus-java/blob/master/examples/src/main/java/io/opencensus/examples/http/jetty/client/HelloWorldClient.java 46[httpclient-run]: https://github.com/census-instrumentation/opencensus-java/blob/master/examples/README.md#to-run-http-server-and-client 47