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

Mikołaj Nowak commented on CAMEL-22612:
---------------------------------------

To provide more context:

 

springCloudVersion = "2025.0.0"

apacheCamelVersion    = "4.15.0"

dependencyManagement {
    imports {
        mavenBom 
"org.springframework.cloud:spring-cloud-dependencies:$springCloudVersion"
    }
}

 

Dependencies related to Spring Boot:

    implementation 'org.springframework.boot:spring-boot-starter-activemq'
    implementation 'org.springframework.boot:spring-boot-starter-actuator'
    implementation 'org.springframework.boot:spring-boot-starter-integration'
    implementation 'org.springframework.boot:spring-boot-starter-web'
    implementation "org.springframework.cloud:spring-cloud-starter"
    implementation 
'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
    implementation 
"org.springframework.cloud:spring-cloud-starter-kubernetes-client-all"
    implementation 
"org.springframework.cloud:spring-cloud-starter-kubernetes-client-loadbalancer"
    implementation 'io.micrometer:context-propagation'
    implementation 'io.micrometer:micrometer-tracing-bridge-brave'
    implementation 'io.zipkin.reporter2:zipkin-reporter-brave'
    runtimeOnly 'io.micrometer:micrometer-registry-prometheus'

 

Dependencies related to Camel:

    implementation "org.apache.camel:camel-jaxb:$apacheCamelVersion"
    implementation 
"org.apache.camel.springboot:camel-cxf-soap-starter:$apacheCamelVersion"
    implementation 
"org.apache.camel.springboot:camel-http-starter:$apacheCamelVersion"
    implementation 
"org.apache.camel.springboot:camel-observation-starter:$apacheCamelVersion"
    implementation 
"org.apache.camel.springboot:camel-servlet-starter:$apacheCamelVersion"

> camel-observation-starter + Spring Boot 3.5.7 fails to start
> ------------------------------------------------------------
>
>                 Key: CAMEL-22612
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22612
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-spring-boot-starters
>    Affects Versions: 4.15.0
>         Environment: Apache Camel 4.15.0, including camel-observation-starter.
> Spring Boot 3.5.7, including spring-boot-actuator-autoconfigure.
>            Reporter: Mikołaj Nowak
>            Assignee: Pasquale Congiusti
>            Priority: Major
>             Fix For: 4.16.0
>
>
> With Apache Camel 4.15.0 and Spring Boot 3.5.7, camel-observation-starter 
> causes application startup error:
> The bean 'tracingAwareMeterObservationHandler', defined in class path 
> resource 
> [org/apache/camel/observation/starter/ObservationAutoConfiguration.class], 
> could not be registered. A bean with that name has already been defined in 
> class path resource 
> [org/springframework/boot/actuate/autoconfigure/observation/ObservationAutoConfiguration$MeterObservationHandlerConfiguration$TracingAndMetricsObservationHandlerConfiguration.class]
>  and overriding is disabled.
>  
> Setting camel.observation.enabled to false resolves the startup error, but 
> then tracing does not work for Camel routes. The issue might be related to 
> CAMEL-22349.
>  
> As a temporary workaround, I downgraded Camel to 4.14.0. The issue does not 
> occur in that version.



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

Reply via email to