Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18186

camel-saga: tracing information is not propagate on compensation/completion

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.11.7
    • 4.7.0
    • camel-opentelemetry, eip
    • None
    • Unknown

    Description

      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.  

       

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

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            chiochuan@gmail.com chio chuan ooi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: