🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

zipkin-instrumentation-koa

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zipkin-instrumentation-koa

Koa middleware for instrumentation with Zipkin.js

latest
Source
npmnpm
Version
0.22.0
Version published
Maintainers
1
Created
Source

zipkin-instrumentation-koa

npm

Zipkin middleware for Koa 2.7+ that traces incoming HTTP requests.

Installation

npm install zipkin-instrumentation-koa

Usage

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

const ctxImpl = new ExplicitContext();
const recorder = new ConsoleRecorder();
const tracer = new Tracer({recorder, ctxImpl, localServiceName: 'zipkin-koa-demo'});

const app = new Koa();

app.use(koaMiddleware({tracer}));

FAQs

Package last updated on 04 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts