Download opentelemetry-auto-0.3.0.jar
and one of the exporters:
opentelemetry-auto-exporters-jaeger-0.3.0.jar
opentelemetry-auto-exporters-logging-0.3.0.jar
opentelemetry-auto-exporters-otlp-0.3.0.jar
To run with the otlp exporter:
export OTEL_RESOURCE_ATTRIBUTES=service.name=shopping
java -javaagent:path/to/opentelemetry-auto-0.3.0.jar \
-Dota.exporter.jar=path/to/opentelemetry-auto-exporters-otlp-0.3.0.jar \
-Dota.exporter.otlp.endpoint=localhost:55678 \
-jar myapp.jar
To run with the jaeger exporter:
java -javaagent:path/to/opentelemetry-auto-0.3.0.jar \
-Dota.exporter.jar=path/to/opentelemetry-auto-exporters-jaeger-0.3.0.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.3.0.jar \
-Dota.exporter.jar=path/to/opentelemetry-auto-exporters-logging-0.3.0.jar \
-jar myapp.jar