Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update JVM flag otel.java.experimental.extension #338

Merged
merged 1 commit into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/autoinstrument/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jib {
// Use the downloaded java agent.
'-javaagent:/otelagent/otel_agent.jar',
// Use the GCP exporter extensions.
'-Dotel.javaagent.experimental.extensions=/otelagent/gcp_ext.jar',
'-Dotel.javaagent.extensions=/otelagent/gcp_ext.jar',
// Configure auto instrumentation.
'-Dotel.traces.exporter=google_cloud_trace',
'-Dotel.metrics.exporter=google_cloud_monitoring',
Expand Down
4 changes: 2 additions & 2 deletions propagators/gcp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ The preferred mechanism is to use the [SDK autoconfigure extension](https://gith

- Add a runtime dependency from your java project to this library.
- You can now use `oneway-gcp` and `gcp` as viable propagation strings in [the `otel.propagators` flag](https://github.com/open-telemetry/opentelemetry-java/tree/main/sdk-extensions/autoconfigure#propagator)
- When using the autoinstrumentation agent, you also need to pass our propagators to the autoinstrumentation "extension" classpath. This can be done through the `otel.javaagent.experimental.extensions` flag.
- When using the autoinstrumentation agent, you also need to pas our propagators to the autoinstrumentation "extension" classpath. This can be done through the `otel.javaagent.extensions` flag.
```
-Dotel.javaagent.experimental.extensions=/path/to/downloaded/gcp-propagator.jar
-Dotel.javaagent.extensions=/path/to/downloaded/gcp-propagator.jar
```
For a complete example see [here](https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/blob/main/examples/autoinstrument/build.gradle#L63).

Expand Down
Loading