You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by L F <l8...@yahoo.com.INVALID> on 2015/03/17 14:21:45 UTC

Tracing messages including step information to a queue/topic

Hello, 
I have configured a camel context with tracing, and configured an endpoint (activemq topic) where it should send the trace message. It works but i face two problems:        1. the message is sent to the topic, and i can access it from a custom java code, but i can't find any information related to the current context, route which is executing or the current step. Is there any way to obtain these information?

    2. it works really slow ... 
current setup: apache karaf 3.0.3, camel 2.16.0
<bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent">        <property name="brokerURL" value="tcp://192.168.1.109:61610"/>        <property name="transacted" value="false"/>               <property name="usePooledConnection" value="true"/>    </bean>        <bean id="camelTracer" class="org.apache.camel.processor.interceptor.Tracer">                <property name="useJpa" value="false"/>        <!-- the destination to send the traced messages -->        <property name="destination" ref="traced"/>        <property name="traceInterceptors" value="true"/>        <property name="traceExceptions" value="true"/>        <property name="traceOutExchanges" value="true"/>        <property name="logStackTrace" value="true" />        <property name="logLevel" value="ERROR"/>
    </bean>
    <bean id="traceFormatter" class="org.apache.camel.processor.interceptor.DefaultTraceFormatter">        <property name="showBody" value="true"/>        <property name="showBodyType" value="false"/>        <property name="showBreadCrumb" value="false"/>        <property name="maxChars" value="100"/>        <property name="showNode" value="true"/>        <property name="showProperties" value="true"/>    </bean>...<camelContext xmlns="http://camel.apache.org/schema/blueprint" id="TestContext" trace="true">        <endpoint id="traced" uri="activemq:topic:tracking"/>
......</camelContext>
Any help would be appreciated,Laji