Pasquale Congiusti created CAMEL-21491:
------------------------------------------

             Summary: [camel-observability-services] Add OTLP autoconfigure as 
default for main
                 Key: CAMEL-21491
                 URL: https://issues.apache.org/jira/browse/CAMEL-21491
             Project: Camel
          Issue Type: Improvement
            Reporter: Pasquale Congiusti
            Assignee: Pasquale Congiusti
             Fix For: 4.10.0


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:
{code}
        <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>
{code}
and starting with the following system properties:
{code}
java -Dotel.java.global-autoconfigure.enabled=true -Dotel.traces.exporter=none 
-jar target/Test-1.0-SNAPSHOT.jar
{code}
We should embed this configuration in the observability services to make it run 
OOTB (like it happens for Springboot and Quarkus runtimes).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to