Prerequisites:
- Traceable Platform Agent installed on the same host or accessibly from the application server being instrumented via ports 8181 and 4317. See -> https://docs.traceable.ai/docs/tpa
- Java 8 or above
Steps to take:
1. Download the latest java agent using the following cURL command:
curl -OL https://downloads.traceable.ai/agent/java/latest/javaagent-latest.tgz
2. Extract the downloaded `tar.gz` file
tar -xvf javaagent-latest.tgz
3. Edit the file example-config.yaml included with the tar file and update the service_name
service_name: service_name propagationFormats: - TRACECONTEXT reporting: trace_reporter_type: OTLP endpoint: http://localhost:4317 opa: enabled: true endpoint: http://localhost:8181
4. Attach the javaagent to your java startup command like so:
HT_CONFIG_FILE=/path/to/example-config.yaml java -javaagent:/path/to/javaagent.jar -jar app.jar