Ruslan Hryn created CAMEL-21919:
-----------------------------------

             Summary: Warning logs when use OpenTelemetry with trace processors
                 Key: CAMEL-21919
                 URL: https://issues.apache.org/jira/browse/CAMEL-21919
             Project: Camel
          Issue Type: Improvement
          Components: camel-kafka
    Affects Versions: 4.10.3
            Reporter: Ruslan Hryn


The following warnings will appear during the application startup when using 
OpenTelemetry with a trace processor:

 
{code:java}
2025-03-31T15:35:24.627+03:00  WARN 91210 --- [demo] [           main] 
o.a.camel.impl.engine.DefaultChannel     : Interceptor: 
org.apache.camel.opentelemetry.OpenTelemetryTracingStrategy@210a26b at: 
Log[Hello World] does not return an AsyncProcessor instance. This causes the 
asynchronous routing engine to not work as optimal as possible. See more 
details at the InterceptStrategy javadoc. Camel will use a bridge to adapt the 
interceptor to the asynchronous routing engine, but its not the most optimal 
solution. Please consider changing your interceptor to comply. {code}
This issue can be easily reproduced by adding the following properties to a 
Spring Boot application:

 

 
{code:java}
camel:
  opentelemetry:
    enabled: true
    trace-processors: true {code}
Additionally, I have created a reproducer 
[here|https://github.com/RuslanHryn/camel-opentelemetry]

 



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

Reply via email to