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

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

OpenCensus Logging Trace Exporter

Build Status Windows Build Status Maven Central

The OpenCensus Logging trace exporter is a trace exporter that logs all data to the system log.

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.28.3</version>
  </dependency>
  <dependency>
    <groupId>io.opencensus</groupId>
    <artifactId>opencensus-exporter-trace-logging</artifactId>
    <version>0.28.3</version>
  </dependency>
  <dependency>
    <groupId>io.opencensus</groupId>
    <artifactId>opencensus-impl</artifactId>
    <version>0.28.3</version>
    <scope>runtime</scope>
  </dependency>
</dependencies>

For Gradle add to your dependencies:

compile 'io.opencensus:opencensus-api:0.28.3'
compile 'io.opencensus:opencensus-exporter-trace-logging:0.28.3'
runtime 'io.opencensus:opencensus-impl:0.28.3'

Register the exporter

public class MyMainClass {
  public static void main(String[] args) throws Exception {
    LoggingTraceExporter.register();
    // ...
  }
}