Doc multiple java agent extension (#6132) (#6133)

* Doc multiple java agent extension  (#6132)

* polished
This commit is contained in:
AndyChen 2022-06-03 03:31:32 +08:00 committed by GitHub
parent 925f6197d8
commit 09457bd431
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ To add the extension to the instrumentation agent:
-Dotel.javaagent.extensions=build/libs/opentelemetry-java-instrumentation-extension-demo-1.0-all.jar
-jar myapp.jar
```
Note: to load multiple extensions, you can specify a directory path for the `otel.javaagent.extensions` value.
## Embed extensions in the OpenTelemetry Agent
To simplify deployment, you can embed extensions into the OpenTelemetry Java Agent to produce a single jar file. With an integrated extension, you no longer need the `-Dotel.javaagent.extensions` command line option.