No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.babelrc
.gitignore
LICENSE
README.md
package-lock.json
package.json

README.md

zipkin-instrumentation-mysql

This library will wrap mysql.

Usage

const {Tracer} = require('zipkin');
const Mysql = require('mysql');
const zipkinClient = require('zipkin-instrumentation-mysql');

const tracer = new Tracer({ctxImpl, recorder}); // configure your tracer properly here

const ZipkinMysql = zipkinClient(tracer, Mysql);

const connectionOptions = {
  user: 'mysql',
  password: 'secret',
  host: 'localhost',
  database: 'mydb'
};

const client = ZipkinMysql.createConnection(connectionOptions);

// Your application code here
client.query('SELECT NOW()', (err, result, fields) => {
  console.log(err, result, fields);
});