Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-21491

[camel-observability-services] Add OTLP autoconfigure as default for main

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 4.10.0
    • 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).

      Attachments

        Activity

          People

            squakez Pasquale Congiusti
            squakez Pasquale Congiusti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: