You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2024/06/30 07:58:00 UTC
[jira] [Comment Edited] (CAMEL-18186) camel-saga: tracing information is not propagate on compensation/completion
[ https://issues.apache.org/jira/browse/CAMEL-18186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17860948#comment-17860948 ]
Claus Ibsen edited comment on CAMEL-18186 at 6/30/24 7:57 AM:
--------------------------------------------------------------
TODO: some test in core to fix *DONE*
was (Author: davsclaus):
TODO: some test in core to fix
> camel-saga: tracing information is not propagate on compensation/completion
> ----------------------------------------------------------------------------
>
> Key: CAMEL-18186
> URL: https://issues.apache.org/jira/browse/CAMEL-18186
> Project: Camel
> Issue Type: Improvement
> Components: camel-opentelemetry, eip
> Affects Versions: 3.11.7
> Reporter: chio chuan ooi
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.7.0
>
>
> When saga coordinator finalize the step, new exchange is being created, all the tracing information in the previous exchange is not being propagated to the new exchange and causing new trace is being generated.
>
> {code:java}
> private Exchange createExchange(Endpoint endpoint, CamelSagaStep step) {
> Exchange exchange = endpoint.createExchange();
> exchange.getIn().setHeader(Exchange.SAGA_LONG_RUNNING_ACTION, getId());
> Map<String, Object> values = optionValues.get(step);
> if (values != null) {
> for (Map.Entry<String, Object> entry : values.entrySet()) {
> exchange.getIn().setHeader(entry.getKey(), entry.getValue());
> }
> }
> return exchange;
> } {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)