You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Aritz (JIRA)" <ji...@apache.org> on 2012/12/03 12:31:58 UTC
[jira] [Created] (CAMEL-5844) Camel Tracer not showing some EIP
names
Aritz created CAMEL-5844:
----------------------------
Summary: Camel Tracer not showing some EIP names
Key: CAMEL-5844
URL: https://issues.apache.org/jira/browse/CAMEL-5844
Project: Camel
Issue Type: Bug
Components: camel-core
Affects Versions: 2.10.1
Reporter: Aritz
Priority: Minor
In order to debug Camel routes, I have enabled the Tracer as follows: getContext().setTracing(true);
However, I have observed that some EIP names and routes are not being printed on console, making it a bit confusing to follow. As far as I know, this happens with:
* process(): the processor is not printed in the tracer; it's just empty (see below)
* marshall(): the marshaller name is not printed in the tracer; it's just empty (see below)
* setBody(): this step is also printed empty
* from("activiti:..."): this route step is not printed altogether
For simplicity, I only provide the examples for process() and marshall(), bit I can provide more information if needed.
{panel:title=Route2 Config}
from("vm:processIncomingOrders")
.process(new IncomingOrdersProcessor())
.split(body()) // iterate list of Orders
.to("log:incomingOrder1?showExchangeId=true")
.process(new ActivitiStarterProcessor())
.to("log:incomingOrder2?showExchangeId=true")
.to("activiti:activiti-camel-example");
{panel}
{panel:title=Route2 Tracer}
INFO 03-12 12:09:31,899 (MarkerIgnoringBase.java:info:96) -ID-ES-CNU2113RXH-51211-1354532898719-0-3 >>> (route2) from(vm://processIncomingOrders) --> <<< Pattern:InOnly, [...]
INFO 03-12 12:09:34,899 (IncomingOrdersProcessor.java:process:39) -Processing incoming orders (from Web Services)
[ORDER id:120 partName: wheel amount: 2 customerName: Honda Mechanics]
[ORDER id:121 partName: engine amount: 4 customerName: Volvo]
[ORDER id:122 partName: steering wheel amount: 3 customerName: Renault]
INFO 03-12 12:09:34,900 (MarkerIgnoringBase.java:info:96) -ID-ES-CNU2113RXH-51211-1354532898719-0-3 >>> (route2) --> split[body] <<< Pattern:InOnly, [...]
{panel}
{panel:title=Route6 config}
from("direct:ordercsv")
.marshal().bindy(BindyType.Csv, "net.atos.camel.entities")
.to("file:d://cameldata/orders?fileName=orders-$\{date:now:yyyyMMdd-hhmmss}.csv");
{panel}
{panel:title=Route6 Tracer}
INFO 03-12 12:09:37,313 (MarkerIgnoringBase.java:info:96) -ID-ES-CNU2113RXH-51211-1354532898719-0-8 >>> (route6) direct://ordercsv --> <<< Pattern:InOnly, [...]
INFO 03-12 12:09:37,320 (MarkerIgnoringBase.java:info:96) -ID-ES-CNU2113RXH-51211-1354532898719-0-8 >>> (route6) --> file://d://cameldata/orders?fileName=orders-%24%7Bdate%3Anow%3AyyyyMMdd-hhmmss%7D.csv <<< Pattern:InOnly, [...]
{panel}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CAMEL-5844) Camel Tracer not showing some EIP
names
Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Müller reassigned CAMEL-5844:
---------------------------------------
Assignee: Christian Müller
> Camel Tracer not showing some EIP names
> ---------------------------------------
>
> Key: CAMEL-5844
> URL: https://issues.apache.org/jira/browse/CAMEL-5844
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.10.1
> Reporter: Aritz
> Assignee: Christian Müller
> Priority: Minor
>
> In order to debug Camel routes, I have enabled the Tracer as follows: getContext().setTracing(true);
> However, I have observed that some EIP names and routes are not being printed on console, making it a bit confusing to follow. As far as I know, this happens with:
> * process(): the processor is not printed in the tracer; it's just empty (see below)
> * marshall(): the marshaller name is not printed in the tracer; it's just empty (see below)
> * setBody(): this step is also printed empty
> * from("activiti:..."): this route step is not printed altogether
> For simplicity, I only provide the examples for process() and marshall(), bit I can provide more information if needed.
> {panel:title=Route2 Config}
> from("vm:processIncomingOrders")
> .process(new IncomingOrdersProcessor())
> .split(body()) // iterate list of Orders
> .to("log:incomingOrder1?showExchangeId=true")
> .process(new ActivitiStarterProcessor())
> .to("log:incomingOrder2?showExchangeId=true")
> .to("activiti:activiti-camel-example");
> {panel}
> {panel:title=Route2 Tracer}
> INFO 03-12 12:09:31,899 (MarkerIgnoringBase.java:info:96) -ID-ES-CNU2113RXH-51211-1354532898719-0-3 >>> (route2) from(vm://processIncomingOrders) --> <<< Pattern:InOnly, [...]
> INFO 03-12 12:09:34,899 (IncomingOrdersProcessor.java:process:39) -Processing incoming orders (from Web Services)
> [ORDER id:120 partName: wheel amount: 2 customerName: Honda Mechanics]
> [ORDER id:121 partName: engine amount: 4 customerName: Volvo]
> [ORDER id:122 partName: steering wheel amount: 3 customerName: Renault]
> INFO 03-12 12:09:34,900 (MarkerIgnoringBase.java:info:96) -ID-ES-CNU2113RXH-51211-1354532898719-0-3 >>> (route2) --> split[body] <<< Pattern:InOnly, [...]
> {panel}
> {panel:title=Route6 config}
> from("direct:ordercsv")
> .marshal().bindy(BindyType.Csv, "net.atos.camel.entities")
> .to("file:d://cameldata/orders?fileName=orders-$\{date:now:yyyyMMdd-hhmmss}.csv");
> {panel}
> {panel:title=Route6 Tracer}
> INFO 03-12 12:09:37,313 (MarkerIgnoringBase.java:info:96) -ID-ES-CNU2113RXH-51211-1354532898719-0-8 >>> (route6) direct://ordercsv --> <<< Pattern:InOnly, [...]
> INFO 03-12 12:09:37,320 (MarkerIgnoringBase.java:info:96) -ID-ES-CNU2113RXH-51211-1354532898719-0-8 >>> (route6) --> file://d://cameldata/orders?fileName=orders-%24%7Bdate%3Anow%3AyyyyMMdd-hhmmss%7D.csv <<< Pattern:InOnly, [...]
> {panel}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5844) Camel Tracer not showing some EIP
names
Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510665#comment-13510665 ]
Christian Müller commented on CAMEL-5844:
-----------------------------------------
You are sure you are using Camel 2.10.1?
Given the route:
{code}
from("vm:start")
.process(new Processor() {
public void process(Exchange exchange) throws Exception {
}
})
.setBody(constant("Camel"))
.to("mock:result");
{code}
I got the following log output:
{noformat}
2012-12-05 19:29:37,235 [main ] INFO DefaultCamelContext - Apache Camel 2.10.1 (CamelContext: camel-1) started in 0.296 seconds
2012-12-05 19:29:37,250 [main ] INFO MockEndpoint - Asserting: Endpoint[mock://result] is satisfied
2012-12-05 19:29:38,235 [#0 - vm://start] INFO Tracer - ID-Christian-Muellers-MacBook-Pro-local-52032-1354732176683-0-3 >>> (route1) from(vm://start) --> org.apache.cmueller.camel.test.DefaultTracerTest$1$1@3ff2cea2 <<< Pattern:InOnly, Headers:{breadcrumbId=ID-Christian-Muellers-MacBook-Pro-local-52032-1354732176683-0-1}, BodyType:String, Body:test
2012-12-05 19:29:38,237 [#0 - vm://start] INFO Tracer - ID-Christian-Muellers-MacBook-Pro-local-52032-1354732176683-0-3 >>> (route1) org.apache.cmueller.camel.test.DefaultTracerTest$1$1@3ff2cea2 --> setBody[{Camel}] <<< Pattern:InOnly, Headers:{breadcrumbId=ID-Christian-Muellers-MacBook-Pro-local-52032-1354732176683-0-1}, BodyType:String, Body:test
2012-12-05 19:29:38,237 [#0 - vm://start] INFO Tracer - ID-Christian-Muellers-MacBook-Pro-local-52032-1354732176683-0-3 >>> (route1) setBody[{Camel}] --> mock://result <<< Pattern:InOnly, Headers:{breadcrumbId=ID-Christian-Muellers-MacBook-Pro-local-52032-1354732176683-0-1}, BodyType:String, Body:Camel
{noformat}
org.apache.cmueller.camel.test.DefaultTracerTest$1$1@3ff2cea2 is the class name of my processor. The name looks ugly because I use an anonymous inner class.
The setBody() call is also logged nicely.
I didn't test the unmarshal call, but from the code I can see it will also be logged.
Please check you project set up.
> Camel Tracer not showing some EIP names
> ---------------------------------------
>
> Key: CAMEL-5844
> URL: https://issues.apache.org/jira/browse/CAMEL-5844
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.10.1
> Reporter: Aritz
> Assignee: Christian Müller
> Priority: Minor
>
> In order to debug Camel routes, I have enabled the Tracer as follows: getContext().setTracing(true);
> However, I have observed that some EIP names and routes are not being printed on console, making it a bit confusing to follow. As far as I know, this happens with:
> * process(): the processor is not printed in the tracer; it's just empty (see below)
> * marshall(): the marshaller name is not printed in the tracer; it's just empty (see below)
> * setBody(): this step is also printed empty
> * from("activiti:..."): this route step is not printed altogether
> For simplicity, I only provide the examples for process() and marshall(), bit I can provide more information if needed.
> {panel:title=Route2 Config}
> from("vm:processIncomingOrders")
> .process(new IncomingOrdersProcessor())
> .split(body()) // iterate list of Orders
> .to("log:incomingOrder1?showExchangeId=true")
> .process(new ActivitiStarterProcessor())
> .to("log:incomingOrder2?showExchangeId=true")
> .to("activiti:activiti-camel-example");
> {panel}
> {panel:title=Route2 Tracer}
> INFO 03-12 12:09:31,899 (MarkerIgnoringBase.java:info:96) -ID-ES-CNU2113RXH-51211-1354532898719-0-3 >>> (route2) from(vm://processIncomingOrders) --> <<< Pattern:InOnly, [...]
> INFO 03-12 12:09:34,899 (IncomingOrdersProcessor.java:process:39) -Processing incoming orders (from Web Services)
> [ORDER id:120 partName: wheel amount: 2 customerName: Honda Mechanics]
> [ORDER id:121 partName: engine amount: 4 customerName: Volvo]
> [ORDER id:122 partName: steering wheel amount: 3 customerName: Renault]
> INFO 03-12 12:09:34,900 (MarkerIgnoringBase.java:info:96) -ID-ES-CNU2113RXH-51211-1354532898719-0-3 >>> (route2) --> split[body] <<< Pattern:InOnly, [...]
> {panel}
> {panel:title=Route6 config}
> from("direct:ordercsv")
> .marshal().bindy(BindyType.Csv, "net.atos.camel.entities")
> .to("file:d://cameldata/orders?fileName=orders-$\{date:now:yyyyMMdd-hhmmss}.csv");
> {panel}
> {panel:title=Route6 Tracer}
> INFO 03-12 12:09:37,313 (MarkerIgnoringBase.java:info:96) -ID-ES-CNU2113RXH-51211-1354532898719-0-8 >>> (route6) direct://ordercsv --> <<< Pattern:InOnly, [...]
> INFO 03-12 12:09:37,320 (MarkerIgnoringBase.java:info:96) -ID-ES-CNU2113RXH-51211-1354532898719-0-8 >>> (route6) --> file://d://cameldata/orders?fileName=orders-%24%7Bdate%3Anow%3AyyyyMMdd-hhmmss%7D.csv <<< Pattern:InOnly, [...]
> {panel}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira