Download opentelemetry-auto-0.2.1.jar
and one of the exporters:
opentelemetry-auto-exporters-jaeger-0.2.1.jar
opentelemetry-auto-exporters-logging-0.2.1.jar
opentelemetry-auto-exporters-otlp-0.2.1.jar
To run with the jaeger exporter:
java -javaagent:path/to/opentelemetry-auto-0.2.1.jar \
-Dota.exporter.jar=path/to/opentelemetry-auto-exporters-jaeger-0.2.1.jar \
-Dota.exporter.jaeger.endpoint=localhost:14250 \
-Dota.exporter.jaeger.service.name=shopping \
-jar myapp.jar
To run with the logging exporter:
java -javaagent:path/to/opentelemetry-auto-0.2.1.jar \
-Dota.exporter.jar=path/to/opentelemetry-auto-exporters-logging-0.2.1.jar \
-jar myapp.jar
To run with the otlp exporter:
java -javaagent:path/to/opentelemetry-auto-0.2.1.jar \
-Dota.exporter.jar=path/to/opentelemetry-auto-exporters-otlp-0.2.1.jar \
-Dota.exporter.otlp.endpoint=localhost:55678 \
-jar myapp.jar