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
- is related to
-
CAMEL-21302 camel-opentelemetry context leak with direct async producer
- Resolved
-
CAMEL-21309 camel-cxf - When Exchange is using otel then run synchronous to avoid leaking spans
- Resolved