- Dependency the toolkit, such as using maven or gradle
<dependency>
<groupId>org.skywalking</groupId>
<artifactId>apm-toolkit-opentracing</artifactId>
<version>{project.release.version}</version>
</dependency>
- Use our OpenTracing tracer implementation
Tracer tracer = new org.skywalking.apm.toolkit.opentracing.SkywalkingTracer();
Tracer.SpanBuilder spanBuilder = tracer.buildSpan("/yourApplication/yourService");