0.2.3 • Published 4 years ago

moleculer-console-tracer v0.2.3

Weekly downloads
122
License
MIT
Repository
github
Last release
4 years ago

Moleculer logo

moleculer-console-tracer NPM version

Simple tracer service to print metric traces to the console. Do not use it in production. Just for prototyping and testing.

Console Tracing screenshot

Don't execute multiple instances because it is not a centralized tracing solution.

Features

Install

$ npm install moleculer-console-tracer

Usage

// 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,
    // ...
}

Settings

PropertyTypeDefaultDescription
widthNumber80Table width.
gaugeWidthNumber40Gauge width.

Actions

Methods

Test

$ npm test

In development with watching

$ npm run ci

License

The project is available under the MIT license.

Contact

Copyright (c) 2016-2018 MoleculerJS

@moleculerjs @MoleculerJS