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

   ## Summary
   
   - Add `hasCustomIdAssigned()` default method to `NamedNode` interface in 
camel-api, so the telemetry interceptor can check without casting to model 
classes
   - Add `traceCustomIdOnly` boolean field (default `false`) to the `Tracer` 
base class in camel-telemetry, auto-configured via `@Configurer` as 
`camel.opentelemetry2.traceCustomIdOnly`
   - Wire the check into `TraceProcessorsInterceptStrategy.shouldTrace()` — 
when enabled, skip processors without a custom `.id()`
   - Add documentation to `opentelemetry2.adoc`
   
   This follows the JMX precedent 
(`ManagementAgent.onlyRegisterProcessorWithCustomId`) for intent-based 
filtering.
   
   ## Test plan
   
   - [x] `TraceCustomIdOnlyTest` — route with mixed processors (some with 
`.id()`, some without), verifies only custom-ID'd processors produce spans
   - [ ] Existing telemetry tests pass
   
   _Claude Code on behalf of Claus Ibsen_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


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