Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
src/ | 23-Nov-2023 | - | 238 | 94 | ||
README.md | D | 23-Nov-2023 | 1.8 KiB | 58 | 49 | |
build.gradle | D | 23-Nov-2023 | 330 | 11 | 8 |
README.md
1# OpenCensus Logging Trace Exporter 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 Logging trace exporter* is a trace exporter that logs all data to the system log. 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.16.1</version> 19 </dependency> 20 <dependency> 21 <groupId>io.opencensus</groupId> 22 <artifactId>opencensus-exporter-trace-logging</artifactId> 23 <version>0.16.1</version> 24 </dependency> 25 <dependency> 26 <groupId>io.opencensus</groupId> 27 <artifactId>opencensus-impl</artifactId> 28 <version>0.16.1</version> 29 <scope>runtime</scope> 30 </dependency> 31</dependencies> 32``` 33 34For Gradle add to your dependencies: 35```gradle 36compile 'io.opencensus:opencensus-api:0.16.1' 37compile 'io.opencensus:opencensus-exporter-trace-logging:0.16.1' 38runtime 'io.opencensus:opencensus-impl:0.16.1' 39``` 40 41### Register the exporter 42 43```java 44public class MyMainClass { 45 public static void main(String[] args) throws Exception { 46 LoggingTraceExporter.register(); 47 // ... 48 } 49} 50``` 51 52[travis-image]: https://travis-ci.org/census-instrumentation/opencensus-java.svg?branch=master 53[travis-url]: https://travis-ci.org/census-instrumentation/opencensus-java 54[appveyor-image]: https://ci.appveyor.com/api/projects/status/hxthmpkxar4jq4be/branch/master?svg=true 55[appveyor-url]: https://ci.appveyor.com/project/opencensusjavateam/opencensus-java/branch/master 56[maven-image]: https://maven-badges.herokuapp.com/maven-central/io.opencensus/opencensus-exporter-trace-logging/badge.svg 57[maven-url]: https://maven-badges.herokuapp.com/maven-central/io.opencensus/opencensus-exporter-trace-logging 58