[ 
https://issues.apache.org/jira/browse/CAMEL-21491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17905440#comment-17905440
 ] 

Pasquale Congiusti commented on CAMEL-21491:
--------------------------------------------

Providing an opinionated default setting is not possible as the component still 
requires configuration based on the specific application. this configuration 
must be set by the user. However, I've added a documentation note to specify 
how the used can provide a minimal basic configuration with as low as 
configuration as possible.

> [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
>            Priority: Major
>             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