1.1.6 ā€¢ Published 5 years ago

egg-zipkin v1.1.6

Weekly downloads
21
License
MIT
Repository
github
Last release
5 years ago

egg-zipkin

NPM version npm download

The official team (ali) publish their egg-opentracing-zipkin plugin.Best wishes to them!

Well,this one is still being maintained continuously. šŸ˜€

New features in coming!

Happy to recieve suggestions and comments.

issue page:https://github.com/exacloud/zipkin-instrumentation-egg/issues

Install

$ npm i egg-zipkin --save

Usage

zipkin-instrumentation-egg

zipkin instrumentation for egg as a plugin.

Install this to an egg server,use this in your router:

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

//{app_root}/config/config.xxx.js
exports.zipkin = {
    serviceName: 'awesome-service',
    httpsOn: false, // if you set this to true, it will use https protocal to visit your targetServer
    targetServer: '127.0.0.1:9411',
    targetApi: '/api/v2/spans',
    jsonEncoder: 'v2', // you can choose 'v1' or 'v2',
    consoleRecorder: false // if you set this to true , it will use ConsoleRecorder to print messages on your console.Thus only serviceName will be used.
}; 

Set consoleRecorder to false or just do nothing with it, and then use docker, visit localhost:9411 (or your target listener api: ${httpsOn ? 'https://' : 'http://''}${targetServer}${targetApi}) to see what happens

$ docker run -d -p 9411:9411 openzipkin/zipkin

p.s.

In this version, it supports tracing globally! Cheers! (>Ļ‰<)

License

MIT

1.1.6

5 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago