Name: tracing-middleware
Owner: Clever
Description: Moved to opentracing-contrib org
Created: 2016-11-30 22:31:26.0
Updated: 2018-05-19 17:18:24.0
Pushed: 2017-12-19 22:29:29.0
Homepage: https://github.com/opentracing-contrib/javascript-express
Size: 20
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Middleware for express to enable opentracing. Supports any opentracing tracer compatible with version 0.11.0 of the opentracing javascript library.
Please note that this library has been moved to https://github.com/opentracing-contrib/javascript-express. Please use that version instead.
install --save tracing-middleware
E.g., using LightStep as your tracer:
rt * as express from "express";
rt middleware from "tracing-middleware";
rt * as LightStep from "lightstep-tracer";
t lsTracer = LightStep.tracer({
cess_token : 'foo',
mponent_name : 'bar',
t app = express();
use(middleware({tracer: lsTracer}));
The middleware
function takes in an options object as its only argument.
t options = {
acer: [Tracer], // Defaults to the opentracing no-op tracer.