gnodet opened a new pull request, #1730: URL: https://github.com/apache/camel-spring-boot/pull/1730
JIRA: [CAMEL-23225](https://issues.apache.org/jira/browse/CAMEL-23225) ## Summary - Register an OTel context-propagating `TaskDecorator` bean in `camel-opentelemetry2-starter` auto-configuration - Spring's `ThreadPoolTaskExecutor` (used by `camel-platform-http-starter`) captures the current OTel context on the submitting thread and restores it on the worker thread - Prevents OpenTelemetry context leaks in async/multi-threaded scenarios - `@ConditionalOnMissingBean` allows users to provide their own `TaskDecorator` if needed Follow-up to [apache/camel#22190](https://github.com/apache/camel/pull/22190) based on [review feedback from @johnpoth](https://github.com/apache/camel/pull/22190#pullrequestreview-4000360924). ## Test plan - [x] `OtelContextPropagatingTaskDecoratorTest` verifies the `TaskDecorator` bean is auto-configured - [x] Verifies OTel context is propagated from submitting thread to worker thread _Claude Code on behalf of Guillaume Nodet_ 🤖 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]
