Add otel-java version interop warning (#687)

* Add otel-java version interop warning

* Two fixes

* Improvements
This commit is contained in:
Trask Stalnaker 2020-07-13 21:55:08 -07:00 committed by GitHub
parent 95593c9ddc
commit c8bac67ee7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -38,7 +38,7 @@ at `localhost:55680`.
Configuration parameters are passed as Java system properties (`-D` flags) or
as environment variables (see below for full list). For example:
```
java -javaagent:path/to/opentelemetry-auto-all.jar \
java -javaagent:path/to/opentelemetry-javaagent-all.jar \
-Dota.exporter=zipkin
-jar myapp.jar
```
@ -211,6 +211,11 @@ you can enable it by add the following system property:
## Manually instrumenting
> :warning: starting with 0.6.0, and prior to version 1.0.0, `opentelemetry-javaagent-all.jar`
only supports manual instrumentation using the `opentelemetry-api` version with the same version
number as the Java agent you are using. Starting with 1.0.0, the Java agent will start supporting
multiple (1.0.0+) versions of `opentelemetry-api`.
You can use the OpenTelemetry `getTracer` or the `@WithSpan` annotation to
manually instrument your Java application.