Neverending Plethora of Modules
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

moleculer-zipkin

0.2.0 • Public • Published

Moleculer logo

moleculer-zipkin NPM version

Moleculer metrics module for Zipkin.

Zipkin screenshot

Features

  • support v1 & v2 API.
  • send spans via HTTP.
  • batch or single sending.

Install

$ npm install moleculer-zipkin

Usage

// services/metrics.zipkin.js
 
const ZipkinService = require("moleculer-zipkin");
 
module.exports = {
    mixins: [ZipkinService],
    settings: {
        baseURL: "http://192.168.0.181:9411",
        version: "v2",
        batchTime: 1000,
        payloadOptions: {
            debug: false,
            shared: false
        }
    }
});
 
// moleculer.config.js
module.exports = {
    // ...
    metrics: true,
    // ...
}

Settings

Property Type Default Description
baseURL String required Base URL for Zipkin server.
version String required Zipkin REST API version.
batchTime Number required Batch send time interal. Disable: 0
payloadOptions Object required Additional payload options.
payloadOptions.debug Boolean required Set debug property in v2 payload.
payloadOptions.shared Boolean required Set shared property in v2 payload.

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

install

npm i moleculer-zipkin

Downloadsweekly downloads

104

version

0.2.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar