diff --git a/run-example.sh b/run-example.sh index 016e333..0b591d2 100755 --- a/run-example.sh +++ b/run-example.sh @@ -5,9 +5,9 @@ if [[ ! -f ./target/example-app.jar ]] ; then ./mvnw clean package fi if [[ ! -f ./opentelemetry-javaagent.jar ]] ; then - curl -sOL https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.30.0/opentelemetry-javaagent.jar + curl -sOL https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v2.0.0/opentelemetry-javaagent.jar fi -export OTEL_LOGS_EXPORTER=otlp +export OTEL_EXPORTER_OTLP_PROTOCOL=grpc export OTEL_SEMCONV_STABILITY_OPT_IN=http export OTEL_RESOURCE_ATTRIBUTES="service.name=example-app,service.instance.id=localhost:8080" java -Dotel.metric.export.interval=500 -Dotel.bsp.schedule.delay=500 -javaagent:opentelemetry-javaagent.jar -jar ./target/example-app.jar