You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by rwijngaa <ri...@gmail.com> on 2015/06/10 17:51:50 UTC

Trace from and to endpoints

Hi,

What would be the best way to gather the 'path' a camel route takes for an
audit log. 
The way i see it i have at least 3 options:  implement my own Tracer
(http://camel.apache.org/tracer.html), implement my own InterceptStrategy or
catch the exchange events by extending the EventNotifierSupport?

Thanks in advance
Regards
Rino



--
View this message in context: http://camel.465427.n5.nabble.com/Trace-from-and-to-endpoints-tp5768077.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Trace from and to endpoints

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

See also the message history eip pattern

On Wed, Jun 10, 2015 at 5:51 PM, rwijngaa
<ri...@gmail.com> wrote:
> Hi,
>
> What would be the best way to gather the 'path' a camel route takes for an
> audit log.
> The way i see it i have at least 3 options:  implement my own Tracer
> (http://camel.apache.org/tracer.html), implement my own InterceptStrategy or
> catch the exchange events by extending the EventNotifierSupport?
>
> Thanks in advance
> Regards
> Rino
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Trace-from-and-to-endpoints-tp5768077.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Re: Trace from and to endpoints

Posted by Tim Dudgeon <td...@gmail.com>.
I believe Camel tracks this automatically at the exchange level 
(assuming you are wanting this on a per-exchange basis).
e.g. when you get an exception this information is written to the logs, 
so its already there.
Try looking at the Exchange properties.

Tim

On 10/06/2015 16:51, rwijngaa wrote:
> Hi,
>
> What would be the best way to gather the 'path' a camel route takes for an
> audit log.
> The way i see it i have at least 3 options:  implement my own Tracer
> (http://camel.apache.org/tracer.html), implement my own InterceptStrategy or
> catch the exchange events by extending the EventNotifierSupport?
>
> Thanks in advance
> Regards
> Rino
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Trace-from-and-to-endpoints-tp5768077.html
> Sent from the Camel - Users mailing list archive at Nabble.com.