Skip to content

Latest commit

 

History

History
12 lines (12 loc) · 367 Bytes

README.md

File metadata and controls

12 lines (12 loc) · 367 Bytes

zipkin-instrumentation-koa

const serviceName = 'backend'
const {KoaInstrumentation} = require('zipkin-instrumentation-koa')
const tracer = require('zipkin-instrumentation-koa/src/recorder')({
  endpoint: 'http://127.0.0.1:9411',
  serviceName
});
const Koa = require('koa')
const app = new Koa()
app.use(KoaInstrumentation({tracer, serviceName}))