Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-9063

OpenTelemetry context leak with CXF async client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 4.0.5
    • None
    • Core, Tracing
    • None
    • Unknown

    Description

      There seems to be a Otel context leak when using a CXF producer in async mode. This causes different requests to have the same traceId. As a workaround, setting synchronous=true on the CXF producer resolves the issue.

      Unit test to reproduce added to camel: https://github.com/apache/camel/blob/7d83a62b8e442dc9ac6fd79b153192add940301e/components/camel-opentelemetry/src/test/java/org/apache/camel/opentelemetry/AsyncCxfTest.java

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mrobson Matthew Robson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: