[ 
https://issues.apache.org/jira/browse/CAMEL-27134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Federico Mariani reassigned CAMEL-27134:
----------------------------------------

    Assignee: Federico Mariani

> camel-platform-http-starter - run the route with the context of the HTTP 
> request, so its spans join the request's trace
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-27134
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27134
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-spring-boot-starters
>            Reporter: Federico Mariani
>            Assignee: Federico Mariani
>            Priority: Major
>
> {{SpringBootPlatformHttpConsumer}} hands the request over to the application 
> task executor and runs the route there without the context of the request 
> thread. With Micrometer Tracing (for example 
> {{spring-boot-starter-opentelemetry}}) and {{camel-opentelemetry2}}, the 
> spans of the route are therefore a separate trace from the {{http post ...}} 
> span that Spring MVC records for the same request.
> When {{io.micrometer:context-propagation}} is on the classpath (it comes with 
> Micrometer Tracing), the consumer can capture the context on the request 
> thread and restore it on the executor thread with Spring's 
> {{ContextPropagatingTaskDecorator}}, as 
> {{spring.task.execution.propagate-context=true}} does for Spring's own 
> executors. The route spans then join the request's trace, and other 
> thread-local context registered with context-propagation (for example the 
> Spring Security context, when its accessor is registered) is available in the 
> route.
> _Claude Code on behalf of Croway_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to