gnodet opened a new pull request, #22190: URL: https://github.com/apache/camel/pull/22190
## Summary - Port thread pool instrumentation from the deprecated `camel-opentelemetry` module to `camel-opentelemetry2` - Add `OpenTelemetryInstrumentedThreadPoolFactory` — wraps Camel-managed `ExecutorService` and `ScheduledExecutorService` with `Context.taskWrapping()` to propagate OTel context - Add `OpenTelemetryInstrumentedThreadFactoryListener` — wraps `ThreadFactory` to propagate OTel context via `Context.current().wrap()` - Both classes are registered as `@JdkService` so they are automatically discovered by Camel This prevents OpenTelemetry context leaks when Camel routes use async processing, thread pools, or other multi-threaded patterns. The deprecated `camel-opentelemetry` module had these classes, but they were not carried over when `camel-opentelemetry2` was created. ## Test plan - [x] All 12 existing `camel-opentelemetry2` tests pass - [x] JDK service files generated correctly for `thread-pool-factory` and `thread-factory-listener` - [x] Verified same pattern as deprecated `camel-opentelemetry` module -- 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]
