Skip to content
Branch: master
Find file History
icebob Publish
 - moleculer-console-tracer@0.2.1
 - moleculer-jaeger@0.2.1
 - moleculer-prometheus@0.2.1
 - moleculer-zipkin@0.2.1
Latest commit ffffc31 Mar 29, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
examples handle unfinished spans Mar 27, 2018
src
test/unit fix tests Jul 10, 2018
.gitignore add console-tracer files Mar 26, 2018
CHANGELOG.md
LICENSE
README.md fix syntax errors and file naming Oct 22, 2018
index.js
package-lock.json update locks Dec 9, 2018
package.json Publish Mar 28, 2019

README.md

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

Property Type Default Description
width Number 80 Table width.
gaugeWidth Number 40 Gauge 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

You can’t perform that action at this time.