0.2.1 • Published 4 years ago
egg-jaeger-tracing v0.2.1
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.