我正在尝试将ODL应用程序与Jaeger或Zipkin集成在一起以跟踪日志。
Jaeger可以很好地使用Java应用程序,但是不能使用ODL。即使添加了捆绑包,我仍然得到NoClassDefError
:
install -s wrap:mvn:org.apache.thrift/libthrift/0.12.0
install -s wrap:mvn:io.jaegertracing/jaeger-core/0.35.4
install -s wrap:mvn:io.jaegertracing/jaeger-thrift/0.35.4
install -s wrap:mvn:io.opentracing/opentracing-api/0.31.0
install -s wrap:mvn:io.opentracing/opentracing-util/0.31.0
install -s wrap:mvn:io.opentracing/opentracing-noop/0.31.0
install -s wrap:mvn:io.opentracing.contrib/opentracing-tracerresolver/0.1.0
对于Zipkin,我尝试使用Zipkin-brave-core,但无法解决依赖关系。
我得到这个:
opendaylight-user@root>diag 259
brave-core (259)
----------------
Status: Installed
Unsatisfied Requirements:
osgi.wiring.package; filter:="(&(osgi.wiring.package=com.github.kristofa.brave.internal)(&(version>=3.16.0)(!(version>=4.0.0)))(braveinternal=true))"; resolution:="mandatory"
osgi.wiring.package; filter:="(&(osgi.wiring.package=com.twitter.zipkin.gen)(&(version>=3.16.0)(!(version>=4.0.0))))"; resolution:="mandatory"
osgi.wiring.package; filter:="(&(osgi.wiring.package=zipkin)(&(version>=1.16.0)(!(version>=2.0.0))))"; resolution:="mandatory"
osgi.wiring.package; filter:="(&(osgi.wiring.package=zipkin.internal)(&(version>=1.16.0)(!(version>=2.0.0))))"; resolution:="mandatory"