zipkin-instrumentation-connect
A Connect middleware and instrumentation that adds Zipkin tracing to the application. Compatible with any server which uses the connect api (Express and Restify).
Usage
Connect
const connect = ;const Tracer ExplicitContext ConsoleRecorder = ;const zipkinMiddleware = ; const ctxImpl = ;const recorder = ;const localServiceName = 'service-a'; // name of this applicationconst tracer = ctxImpl recorder localServiceName; const app = ; // Add the Zipkin middlewareapp;
Express
const express = ;const Tracer ExplicitContext ConsoleRecorder = ;const zipkinMiddleware = ; const ctxImpl = ;const recorder = ;const localServiceName = 'service-a'; // name of this applicationconst tracer = ctxImpl recorder localServiceName; const app = ; // Add the Zipkin middlewareapp;
Restify
const restify = ;const Tracer ExplicitContext ConsoleRecorder = ;const zipkinMiddleware = ; const ctxImpl = ;const recorder = ;const localServiceName = 'service-a'; // name of this applicationconst tracer = ctxImpl recorder localServiceName; const app = restify; // Add the Zipkin middlewareapp;