Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
src/ | H | 25-Apr-2025 | - | 1,039 | 672 | |
README.md | H A D | 25-Apr-2025 | 1.9 KiB | 46 | 37 | |
build.gradle | H A D | 25-Apr-2025 | 532 | 22 | 16 |
README.md
1# OpenCensus Http Servlet Plugin 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 Http Servlet Plugin for Java* is a plugin for trace instrumentation when using HTTP Servlet 3.0 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-servlet</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-servlet:0.28.3' 32``` 33 34## Instrumenting HTTP Servlets 35 36See [http-server][httpservlet-code] example. Instruction to build and run the example is [here][httpservlet-run]. 37 38[travis-image]: https://travis-ci.org/census-instrumentation/opencensus-java.svg?branch=master 39[travis-url]: https://travis-ci.org/census-instrumentation/opencensus-java 40[appveyor-image]: https://ci.appveyor.com/api/projects/status/hxthmpkxar4jq4be/branch/master?svg=true 41[appveyor-url]: https://ci.appveyor.com/project/opencensusjavateam/opencensus-java/branch/master 42[maven-image]: https://maven-badges.herokuapp.com/maven-central/io.opencensus/opencensus-contrib-http-servlet/badge.svg 43[maven-url]: https://maven-badges.herokuapp.com/maven-central/io.opencensus/opencensus-contrib-http-servlet 44[httpservlet-run]: https://github.com/census-instrumentation/opencensus-java/tree/master/examples#to-run-http-server-and-client 45[httpservlet-code]: https://github.com/census-instrumentation/opencensus-java/blob/master/examples/src/main/java/io/opencensus/examples/http/jetty/server/HelloWorldServer.java 46