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 2019/12/23 18:12:00 UTC
[jira] [Commented] (CAMEL-14324) Brave MDC Integration fails in
Karaf due to missing class CorrelationFieldScopeDecorator
[ https://issues.apache.org/jira/browse/CAMEL-14324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17002419#comment-17002419 ]
Claus Ibsen commented on CAMEL-14324:
-------------------------------------
What version of Camel and karaf are you using?
> Brave MDC Integration fails in Karaf due to missing class CorrelationFieldScopeDecorator
> ----------------------------------------------------------------------------------------
>
> Key: CAMEL-14324
> URL: https://issues.apache.org/jira/browse/CAMEL-14324
> Project: Camel
> Issue Type: Bug
> Components: camel-zipkin
> Reporter: Dietrich Schulten
> Priority: Minor
>
> When {{useMDCLogging}} is set to true on a CamelContext with camel-zipkin, the application fails to start. The error message is {{java.lang.NoClassDefFoundError: brave/internal/propagation/CorrelationFieldScopeDecorator}}.
> The reason might be that the {{brave.context.slf4j.MDCScopeDecorator}} from {{brave-context-slf4j, introduced into ZipkinTracer with CAMEL-12721, extends brave.internal.propagation.CorrelationFieldScopeDecorator}}, which seems not to get exported by the brave bundle [https://github.com/openzipkin/brave/tree/5.6.5/brave], according to its bnd file ([https://github.com/openzipkin/brave/blob/5.6.5/brave/bnd.bnd]). Possibly this is why the [instance creation|https://github.com/apache/camel/blob/e46b2d916aa748dfd292190ed52b9d3413ceb70d/components/camel-zipkin/src/main/java/org/apache/camel/zipkin/ZipkinTracer.java#L576] fails.
> The solution could be to use only exported brave classes (effectively recreating {{MDCScopeDecorator}}) or maybe let OSGi create the {{MDCScopeDecorator}} instance.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)