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

Nick Horne commented on CAMEL-12626:
------------------------------------

Would it be possible to get this in one of the camel 2.21.x (pre spring boot 2) 
releases? 

We can no longer use the tracer as we have a re-delivery strategy defined.

> Camel Tracing is not working for route with redelivery strategy
> ---------------------------------------------------------------
>
>                 Key: CAMEL-12626
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12626
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.20.2
>            Reporter: storage
>            Assignee: Claus Ibsen
>            Priority: Minor
>              Labels: camel, camel-core,, tracer
>             Fix For: 2.23.0
>
>
> Camel Tracing is not being executed if there is redelivery strategy defined.
>  In our context we have switched on the camel Tracer with the following:
> {code:java}
>     public static void main(String[] args) throws Exception {
>         DefaultCamelContext context = new DefaultCamelContext();
>         context.addRoutes(new RouteBuilder() {
>             @Override
>             public void configure() throws Exception {
>                 // If errorHandler with redelivery is removed then tracer 
> output is visible again.
>                 errorHandler(new 
> DefaultErrorHandlerBuilder().maximumRedeliveries(3).redeliveryDelay(2000L));
>                 from("direct:start").process(new Processor() {
>                     public void process(Exchange exchange) throws Exception {
>                         System.out.println("PROCESSED");
>                     }
>                 });
>             }
>         });
>         // Enable Tracer.
>         context.setTracing(true);
>         context.start();
>         ProducerTemplate template = context.createProducerTemplate();
>         template.sendBody("direct:start", "foo");
>     }
> {code}
> We noticed that we were missing output from the tracer that we were excepting.
> If you remove the errohandler with redelivery you can see the output we 
> expected:
>  
> {code:java}
> [main] INFO org.apache.camel.processor.interceptor.Tracer - 
> ID-rmm-xxx-xxx-x-x >>> (route1) from(direct://start) --> Processor@0x130d63be 
> <<< Pattern:InOnly, Headers:{breadcrumbId=ID-rmm-xxx-xxx-x-x}, 
> BodyType:String, Body:foo
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to