egg-jaeger-tracing
v0.2.1
Published
[![NPM version][npm-image]][npm-url] <!-- [![build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][snyk-url] --> [![npm download][download-ima
Downloads
3
Readme
egg-jaeger-tracing
Install
$ npm i egg-jaeger-tracing --save
Usage
// {app_root}/config/plugin.js
exports.jaegerTracing = {
enable: true,
package: 'egg-jaeger-tracing',
};
Configuration
// {app_root}/config/config.default.js
exports.jaegerTracing = {
config: {
serviceName: 'egg-server-a',
sampler: {
type: 'const',
param: 1,
},
reporter: {
logSpans: true,
agentHost: 'localhost',
agentPort: 6832
},
},
options: {
logger: {
info(msg) {
console.log('INFO ', msg);
},
error(msg) {
console.log('ERROR ', msg);
},
}
}
};
see config/config.default.js for more detail.
Example
Questions & Suggestions
Please open an issue here.