Download the OpenTelemetry Java agent
Download the OpenTelemetry Java agent from the latest release on Github. When running your application, the OpenTelemetry Java agent will need to be present.Run your application with the agent
When running your application, you will need to configure the Java runtime to load the OpenTelemetry Java agent. Change how you start your application to load the OpenTelemetry Java agent with your application:/path/to/opentelemetry-javaagent.jar with the path to the downloaded agent and your-application.jar with the path to your application’s JAR file.
Gradle
When using Gradle, you can add the agent to the task that starts your application in thebuild.gradle file: