Giter Club home page Giter Club logo

sharding-jdbc-opentracing's Introduction

Sharding-JDBC OpenTracing Plugin

Introduction

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.

How to use

Dependency

<dependency>
    <groupId>io.shardingjdbc</groupId>
    <artifactId>sharding-jdbc-opentracing</artifactId>
    <version>${latest.version}</version>
</dependency>

Setting Tracer

There are two ways to incorporate io.opentracing.Tracer object(eg. Zipkin, Skywalking) with this plugin.

1. Using code to config plugin

  1. Get io.opentracing.Tracer object from Opentracing Tracer.
  2. Invoke io.shardingjdbc.opentracing.ShardingJDBCTracer#init(io.opentracing.Tracer) before using Sharding-JDBC components.

2. Using jvm properties to config plugin

You can set a tracer implement to the plugin by following instrument.

  1. Set -Dshardingjdbc.opentracing.tracer.class=OPENTRACING_TRACER_CLASS_NAME to start the application. OPENTRACING_TRACER_CLASS_NAME MUST implement `io.opentracing.Tracer
  2. Invoke io.shardingjdbc.opentracing.ShardingJDBCTracer#init() method before using Sharding-JDBC components.

sharding-jdbc-opentracing's People

Contributors

hanahmily avatar terrymanu avatar haocao avatar

Watchers

neverlandgy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.