Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 554 Bytes

File metadata and controls

25 lines (19 loc) · 554 Bytes

Zipkin-transport-kafka

This is a module that sends Zipkin trace data from zipkin-js to Kafka.

Usage:

npm install zipkin-transport-kafka --save

const {Tracer, BatchRecorder} = require('zipkin');
const {KafkaLogger} = require('zipkin-transport-kafka');

const kafkaRecorder = new BatchRecorder({
  logger: new KafkaLogger({
    clientOpts: {
      connectionString: 'localhost:2181'
    }
  })
});

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