jamesnetherton commented on code in PR #31128:
URL: https://github.com/apache/camel/pull/31128#discussion_r4741045839
##########
core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/CamelInternalProcessor.java:
##########
@@ -854,6 +854,12 @@ public DefaultBacklogTracerEventMessage before(Exchange
exchange) throws Excepti
first.setEndpointServiceProtocol(esl.getServiceProtocol());
first.setEndpointServiceMetadata(esl.getServiceMetadata());
}
+ // the message history begins at the first traced route of an
exchange, which is this one when the
+ // route the exchange came from is not traced (such as a rest
or template route the tracer skips)
Review Comment:
The guard is intentional: `fromUntracedRoute` is only read by
`isExchangeStart`, which `traceEvent` only calls inside its `if
(camelContext.isMessageHistory())` block. With message history off, no history
is begun for any exchange, so the flag would have no effect, and removing the
guard would only add a route lookup and pattern check on every sub-route entry.
6a979bb6dcff rewords the comment to say the flag is only used by the message
history.
_Claude Code on behalf of jamesnetherton_
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]