Skip to content

juspay/zipkin-instrumentation-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published