tree: d50faf674121c5011d7fb5316be7e7fdc22dbf28 [path history] [tgz]
  1. src/
  2. build.gradle
  3. README.md
contrib/http_servlet/README.md

OpenCensus Http Servlet Plugin

Build Status Windows Build Status Maven Central

The OpenCensus Http Servlet Plugin for Java is a plugin for trace instrumentation when using HTTP Servlet 3.0

Quickstart

Add the dependencies to your project

For Maven add to your pom.xml:

<dependencies>
  <dependency>
    <groupId>io.opencensus</groupId>
    <artifactId>opencensus-api</artifactId>
    <version>0.23.0</version>
  </dependency>
  <dependency>
    <groupId>io.opencensus</groupId>
    <artifactId>opencensus-contrib-http-servlet</artifactId>
    <version>0.23.0</version>
  </dependency>
</dependencies>

For Gradle add to your dependencies:

compile 'io.opencensus:opencensus-api:0.23.0'
compile 'io.opencensus:opencensus-contrib-http-servlet:0.23.0'

Instrumenting HTTP Servlets

See http-server example. Instruction to build and run the example is here.