The plugin will add OpenTracing instrumentation to Sharding-JDBC. This plugin makes it easy for developers using the Sharding-JDBC to incorporate the tracer that support OpenTracing.
<dependency>
<groupId>io.shardingjdbc</groupId>
<artifactId>sharding-jdbc-opentracing</artifactId>
<version>${latest.version}</version>
</dependency>
Set -Dsjdbc.opentracing.tracer.class=OPENTRACING_TRACER_CLASS_NAME
to start the application. OPENTRACING_TRACER_CLASS_NAME
MUST implement
io.opentracing.Tracer
Invoke io.shardingjdbc.opentracing.ShardingJDBCTracer#init
method before using Sharding-JDBC components.