egg-tracer
Advanced tools
Weekly downloads
Changelog
Readme
tracer plugin for egg.
npm i egg-tracer
Enable tracer plugin:
// config/plugin.js
exports.tracer = {
enable: true,
package: 'egg-tracer',
};
// my_tracer.js
const Tracer = require('egg-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
:
// config/config.default.js
exports.tracer = {
Class: require('path/to/my_tracer.js'),
};
Please open an issue here.
FAQs
tracer for egg
The npm package egg-tracer receives a total of 256 weekly downloads. As such, egg-tracer popularity was classified as not popular.
We found that egg-tracer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.