Skip to content

shumsky/koa-zipkin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa-zipkin

Zipkin middleware for Koa 2.x that traces incoming HTTP requests.

Usage

const Koa = require('koa');
const {Tracer, ConsoleRecorder, ExplicitContext} = require('zipkin');
const {zipkinMiddleware} = require('koa-zipkin');

const recorder = new ConsoleRecorder();
const ctxImpl = new ExplicitContext();
const tracer = new Tracer({recorder, ctxImpl});
const app = new Koa();

app.use(zipkinMiddleware({tracer, serviceName: 'zipkin-koa-demo', port: 3000}));

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published