Skip to content

Commit

Permalink
Update Java example
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Stäber <[email protected]>
  • Loading branch information
fstab committed Jan 19, 2024
1 parent 2083cb5 commit 7cf7a35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run-example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7cf7a35

Please sign in to comment.