0.2.3 • Published 6 years ago
moleculer-zipkin v0.2.3

moleculer-zipkin 
Moleculer metrics module for Zipkin.

Features
- support v1&v2API.
- send spans via HTTP.
- batch or single sending.
Install
$ npm install moleculer-zipkinUsage
// services/metrics.zipkin.service.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 debugproperty in v2 payload. | 
| payloadOptions.shared | Boolean | required | Set sharedproperty in v2 payload. | 
Actions
Methods
Test
$ npm testIn development with watching
$ npm run ciLicense
The project is available under the MIT license.
Contact
Copyright (c) 2016-2018 MoleculerJS