Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
Unknown
Description
The main is automatically instrumented with a NOOP implementation for Opentelemetry, which makes it useless when used with the default. The user should add the following dependencies:
<dependency> <groupId>io.opentelemetry</groupId> <artifactId>opentelemetry-sdk-extension-autoconfigure</artifactId> <version>1.44.1</version> </dependency> <dependency> <groupId>io.opentelemetry</groupId> <artifactId>opentelemetry-exporter-otlp</artifactId> <version>1.44.1</version> </dependency>
and starting with the following system properties:
java -Dotel.java.global-autoconfigure.enabled=true -Dotel.traces.exporter=none -jar target/Test-1.0-SNAPSHOT.jar
We should embed this configuration in the observability services to make it run OOTB (like it happens for Springboot and Quarkus runtimes).