Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Latest commit

 

History

History
 
 

zipkin-transport-scribe

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Zipkin-transport-scribe

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 scribeRecorder = new BatchRecorder({
  logger: new ScribeLogger({
    scribeHost: '127.0.0.1',
    scribePort: port,
    scribeInterval: 1
  })
});

const tracer = new Tracer({
  scribeRecorder,
  ctxImpl // this would typically be a CLSContext or ExplicitContext
});