[ 
https://issues.apache.org/jira/browse/CAMEL-14324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-14324:
--------------------------------
    Fix Version/s:     (was: 3.1.0)
                   3.x

> 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
>             Fix For: 3.x
>
>
> 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)

Reply via email to