Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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);
});

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Packages

No packages published