Hi team,
in the last weeks I've been working on some bugs reported for the tracing
component [1]. While working on it I've discovered we are doing our own
implementation of MDC. We have some bug that is altering the way these
variables are set and it mixes the traces in the wrong thread. While I am
doing the fix for it I've realized that any tracing implementation
(Opentelemetry, Micrometer Observability) already offers this feature and
it seems to be stronger than ours, since it takes care to set trace/span in
a consistent way. Therefore I created a draft PR [2] in order to propose
the deprecation of the feature in favor of the specific implementation
mechanism. I don't expect to remove the feature anytime soon (we can defer
it to a major release), but I think it is wise to start educating the user
base to use a more consistent implementation instead.

If there is any objection to this, feel free to reply here or directly in
the PR.

Thanks,
Pasquale.

[1] https://issues.apache.org/jira/browse/CAMEL-21472
[2] https://github.com/apache/camel/pull/16543

Reply via email to