cause java.lang.NoSuchMethodError: io.opentracing.ScopeManager.activeSpan()Lio/opentracing/Span;
方案:
将引入的io.opentracing版本调到0.32.0
java.lang.NoClassDefFoundError: io/opentracing/Tracer
方案:
pom文件引入以下依赖:
<dependency>
<groupId>io.opentracing</groupId>
<artifactId>opentracing-api</artifactId>
<version>0.31.0</version>
</dependency>
<dependency>
<groupId>io.opentracing</groupId>
<artifactId>opentracing-noop</artifactId>
<version>0.31.0</version>
</dependency>