Up to higher level directory | |||
Name | Date | Size | |
---|---|---|---|
build.gradle | 22-Oct-2020 | 440 | |
README.md | 22-Oct-2020 | 2.3K | |
src/ | 22-Oct-2020 |
1 # OpenCensus Instana 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 6 The *OpenCensus Instana Trace Exporter* is a trace exporter that exports 7 data to Instana. [Instana](http://www.instana.com/) is a distributed 8 tracing system. 9 10 ## Quickstart 11 12 ### Prerequisites 13 14 [Instana](http://www.instana.com/) forwards traces exported by applications 15 instrumented with Census to its backend using the Instana agent processes as proxy. 16 If the agent is used on the same host as Census, please take care to deactivate 17 automatic tracing. 18 19 20 ### Hello Stan 21 22 #### Add the dependencies to your project 23 24 For Maven add to your `pom.xml`: 25 ```xml 26 <dependencies> 27 <dependency> 28 <groupId>io.opencensus</groupId> 29 <artifactId>opencensus-api</artifactId> 30 <version>0.16.1</version> 31 </dependency> 32 <dependency> 33 <groupId>io.opencensus</groupId> 34 <artifactId>opencensus-exporter-trace-instana</artifactId> 35 <version>0.16.1</version> 36 </dependency> 37 <dependency> 38 <groupId>io.opencensus</groupId> 39 <artifactId>opencensus-impl</artifactId> 40 <version>0.16.1</version> 41 <scope>runtime</scope> 42 </dependency> 43 </dependencies> 44 ``` 45 46 For Gradle add to your dependencies: 47 ```groovy 48 compile 'io.opencensus:opencensus-api:0.16.1' 49 compile 'io.opencensus:opencensus-exporter-trace-instana:0.16.1' 50 runtime 'io.opencensus:opencensus-impl:0.16.1' 51 ``` 52 53 #### Register the exporter 54 55 ```java 56 public class MyMainClass { 57 public static void main(String[] args) throws Exception { 58 InstanaTraceExporter.createAndRegister("http://localhost:42699/com.instana.plugin.generic.trace"); 59 // ... 60 } 61 } 62 ``` 63 64 #### Java Versions 65 66 Java 6 or above is required for using this exporter. 67 68 [travis-image]: https://travis-ci.org/census-instrumentation/opencensus-java.svg?branch=master 69 [travis-url]: https://travis-ci.org/census-instrumentation/opencensus-java 70 [appveyor-image]: https://ci.appveyor.com/api/projects/status/hxthmpkxar4jq4be/branch/master?svg=true 71 [appveyor-url]: https://ci.appveyor.com/project/opencensusjavateam/opencensus-java/branch/master 72 [maven-image]: https://maven-badges.herokuapp.com/maven-central/io.opencensus/opencensus-exporter-trace-instana/badge.svg 73 [maven-url]: https://maven-badges.herokuapp.com/maven-central/io.opencensus/opencensus-exporter-trace-instana 74