marcingrzejszczak commented on PR #9389: URL: https://github.com/apache/camel/pull/9389#issuecomment-1453649224
IMO the graph should like this (please correct me if I'm wrong) ```java from("direct://foo") .log("hello") .to("direct://bar") .to("http://example.org"); from("direct://bar") .log("hello") .to("direct://micrometer") .to("http://example.org"); from("direct://micrometer") .setHeader(MicrometerConstants.HEADER_METRIC_NAME, constant("new.name")) .setHeader(MicrometerConstants.HEADER_METRIC_TAGS, constant(Tags.of("dynamic-key", "dynamic-value"))) .to("micrometer:counter:name.not.used?tags=key=value") .to("direct://baz"); from("direct://baz") .log("hello") .to("bean:com.example.cameldemo.MyBean") .to("exec:wc?args=--words /usr/share/dict/words") .process(exchange -> { // Use the Camel Exec String type converter to convert the ExecResult to String // In this case, the stdout is considered as output String wordCountOutput = exchange.getIn().getBody(String.class); // do something with the word count System.out.println(wordCountOutput); }) .to("file:///tmp/camel-outputdir?flatten=true") .to("http://example.org"); ```  We have a red graph beacuse I'm explicitly throwing an exception in a controller in my application. I've achieved this graph by removing the instanceof check here (https://github.com/apache/camel/blob/camel-3.x/components/camel-tracing/src/main/java/org/apache/camel/tracing/Tracer.java#L296) but obviously I might be missing sth. I'm not committing that change, but if you confirm my assumptions I can file an issue and point to a potential solution. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org