From 7cf7a350399912281629f9a762d0ac50529b4c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20St=C3=A4ber?= Date: Fri, 19 Jan 2024 18:21:56 +0100 Subject: [PATCH] Update Java example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Stäber --- run-example.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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