Simple tracer service to print metric traces to the console. Do not use it in production. Just for prototyping and testing.
Don't execute multiple instances because it is not a centralized tracing solution.
$ npm install moleculer-console-tracer
// services/metrics.tracer.service.js
const Tracer = require("moleculer-console-tracer");
module.exports = {
mixins: [Tracer],
settings: {
width: 100,
gaugeWidth: 50
}
};
// moleculer.config.js
module.exports = {
// ...
metrics: true,
// ...
}
Property | Type | Default | Description |
---|---|---|---|
width |
Number |
80 |
Table width. |
gaugeWidth |
Number |
40 |
Gauge width. |
$ npm test
In development with watching
$ npm run ci
The project is available under the MIT license.
Copyright (c) 2016-2018 MoleculerJS