chore: fix git url
tracer plugin for egg.
npm i @eggjs/tracer
Enable tracer plugin:
// config/plugin.js exports.tracer = { enable: true, package: '@eggjs/tracer', };
// my_tracer.js const { Tracer } = require('@eggjs/tracer'); const counter = 0; class MyTracer extends Tracer { get traceId() { return `${counter++}-${Date.now()}-${process.pid}`; } } module.exports = MyTracer;
Change the config to use MyTracer:
MyTracer
// config/config.default.js exports.tracer = { Class: require('path/to/my_tracer.js'), };
Please open an issue here.
MIT
Made with contributors-img.
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
@eggjs/tracer
tracer plugin for egg.
Install
Usage
Enable tracer plugin:
Build my own tracer
Change the config to use
MyTracer:Questions & Suggestions
Please open an issue here.
License
MIT
Contributors
Made with contributors-img.