Closed Santosh-Kumar-Perumal closed 5 months ago
The link to download is mentioned in the README.
Replace <VERSION>
with the current latest release version number - 0.27.0
in the link address.
Thanks @psx95 does that mean we don't have a jar called opentelemetry-operations-java-auto-.jar instead it is the shaded (exporter-auto:0.27.0-alpha:shaded) or auto (exporter-auto:0.27.0-alpha) jar that is been referred in the below command?
java -javaagent:path/to/opentelemetry-javaagent.jar -Dotel.javaagent.extensions=path/to/opentelemetry-operations-java-auto-.jar
Yes, in the auto-instrumentation section of the document the path mostly refers to the path of downloaded shaded auto-exporter jar.
You can either use the shaded or the non-shaded variants of the JAR, however when using with the Java agent we recommend using the shaded variant.
The JAR itself can have any name, you do not need to change the name to match the particular string mentioned in the README.
The document to configure auto instrumentation as given below specifies to use opentelemetry-operations-java-auto-.jar
java -javaagent:path/to/opentelemetry-javaagent.jar \ -Dotel.javaagent.extensions=path/to/opentelemetry-operations-java-auto-.jar \
-Dotel.traces.exporter=google_cloud_trace \
-Dotel.metrics.exporter=google_cloud_monitoring \
-jar myapp.jar
Can someone please suggest from where to download this jar? Or is it the shaded (exporter-auto:0.27.0-alpha:shaded) or auto (exporter-auto:0.27.0-alpha) that is been referred here?
Document https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/tree/main/exporters/auto
@psx95