davsclaus commented on code in PR #29476:
URL: https://github.com/apache/camel/pull/29476#discussion_r4513581775
##########
core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultRuntimeEndpointRegistry.java:
##########
@@ -212,6 +214,11 @@ &&
getCamelContext().getManagementStrategy().getManagementAgent() != null) {
outputSizeStats = new EndpointSizeStatistics(limit);
}
if (extended) {
+ // the input hits of a route are counted when an exchange enters
it through its consumer, as the route
+ // counts its exchanges: the copies EIPs make inside a route
(circuit breaker, split, multicast, recipient
+ // list) have their own unit of work and ExchangeCreatedEvent but
are no input, and an exchange that comes
+ // from another route over direct is one without an
ExchangeCreatedEvent
+ getCamelContext().addRoutePolicyFactory((context, routeId, route)
-> inputHits);
Review Comment:
Added in 1f4328b794 as its own comment line above the call (a trailing
comment would go past the 120 character limit).
_Claude Code on behalf of davsclaus_
--
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]