davsclaus opened a new pull request, #23286:
URL: https://github.com/apache/camel/pull/23286

   ## Summary
   
   - **`DefaultPlatformHttpConsumer`**: override `setRouteId()` to propagate 
the route ID to the nested `VertxPlatformHttpConsumer`. Previously, the nested 
consumer was created in `doInit()` before `RouteService.doSetup()` called 
`setRouteId()` on the outer consumer, so exchanges carried a null `fromRouteId` 
and endpoint TOTAL counts showed 0.
   
   - **`DefaultRuntimeEndpointRegistry`**: track the consumer's endpoint URI in 
the `inputs` map when it differs from the route's logical endpoint URI (e.g. 
`rest-openapi://...` → `platform-http:///path`). `RouteAddedEvent` now adds 
both URIs; `RouteRemovedEvent` removes both from `inputUtilization`. The 
`ExchangeCreatedEvent` handler keeps a defensive null-`routeId` fallback scan 
for other delegating components.
   
   - **`SyntheticBacklogTracer` SPI** (new): extends `BacklogTracer` with 
`traceFirstNode` / `traceLastNode` for components that process exchanges inline 
and bypass the route pipeline (e.g. rest-openapi mock mode). `BacklogTracer` 
impl now implements this interface. `DefaultRestOpenapiProcessorStrategy` uses 
it to emit synthetic first/last trace events so mock responses participate in 
message-history capture.
   
   ## Test plan
   
   - [ ] `DefaultRuntimeEndpointRegistry` existing tests pass
   - [ ] `BacklogTracer` existing tests pass
   - [ ] rest-openapi consumer with mock mode: verify trace events appear in 
history
   - [ ] rest-openapi route with platform-http: verify TOTAL hit count 
increments correctly in endpoint statistics
   
   _Claude Code on behalf of Claus Ibsen_


-- 
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]

Reply via email to