zipkin-transport-scribe
TypeScript icon, indicating that this package has built-in type declarations

0.22.0 • Public • Published

zipkin-transport-scribe

npm

This is a module that sends Zipkin trace data from zipkin-js to Scribe or Fluentd.

Usage

npm install zipkin-transport-scribe --save

const {Tracer, BatchRecorder} = require('zipkin');
const {ScribeLogger} = require('zipkin-transport-scribe');
const noop = require('noop-logger');
 
const scribeRecorder = new BatchRecorder({
  logger: new ScribeLogger({
    scribeHost: '127.0.0.1',
    scribePort: port,
    scribeInterval: 1,
    log: noop // optional (defaults to console)
  })
});
 
const tracer = new Tracer({
  recorder,
  ctxImpl, // this would typically be a CLSContext or ExplicitContext
  localServiceName: 'service-a' // name of this application
});

Readme

Keywords

none

Package Sidebar

Install

npm i zipkin-transport-scribe

Weekly Downloads

2

Version

0.22.0

License

Apache-2.0

Unpacked Size

26.7 kB

Total Files

14

Last publish

Collaborators

  • openzipkin