Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

Latest commit

 

History

History
45 lines (37 loc) · 1.89 KB

README.md

File metadata and controls

45 lines (37 loc) · 1.89 KB

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.26.0</version>
  </dependency>
  <dependency>
    <groupId>io.opencensus</groupId>
    <artifactId>opencensus-contrib-http-servlet</artifactId>
    <version>0.26.0</version>
  </dependency>
</dependencies>

For Gradle add to your dependencies:

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

Instrumenting HTTP Servlets

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