Skip to content

Report trace infomation to zipkin server in Egg.js.

License

Notifications You must be signed in to change notification settings

Meikwei/egg-opentracing-zipkin

 
 

Repository files navigation

egg-opentracing-zipkin

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Report trace infomation to zipkin server in Egg.js.

Install

$ npm i egg-opentracing-zipkin --save

Usage

egg-opentracing-zipkin depends on egg-opentracing, you should enable these plugin.

// {app_root}/config/plugin.js
exports.opentracing = {
  enable: true,
  package: 'egg-opentracing',
};
exports.zipkin = {
  enable: true,
  package: 'egg-opentracing-zipkin',
};

Configuration

// {app_root}/config/config.default.js
exports.zipkin = {
  endpoint: 'http://locahost:9411',
  version: 'v2',
  interval: 1000,
};
  • endpoint: the hostname of zipkin server.
  • version: zipkin API server, default is v2.
  • interval: how often to sync spans

see config/config.default.js for more detail.

Questions & Suggestions

Please open an issue here.

License

MIT

About

Report trace infomation to zipkin server in Egg.js.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%