jamesnetherton commented on PR #31128:
URL: https://github.com/apache/camel/pull/31128#issuecomment-7281705799

   Thanks, good catch. Fixed in 3b72be9b995d: when the route the exchange came 
from is not traced, the first event of the next traced route may now begin the 
history.
   
   - `BacklogTracerRouteAdvice` marks that event when 
`BacklogTracer.isRouteTraced(fromRouteId)` is false: a REST route with 
`traceRests` off, a template or Kamelet route with `traceTemplates` off, or a 
route that does not match `tracePattern`.
   - `traceFilter` is not checked there: it only looks at the exchange, which 
has already passed it to be traced in the current route.
   - `BacklogTracerMessageHistoryUntracedRouteTest` covers a REST route with 
`inlineRoutes=false`, a templated route, and a route excluded by `tracePattern`.
   
   One correction: REST routes are traced by default. The context default is 
`backlogTracingRests=true`, and both `DefaultChannel` and Camel Main pass it to 
the tracer, so the REST case only applies when it is turned off. The test turns 
it off.
   
   _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]

Reply via email to