Clever/tracing-middleware

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

OpenTracing Badge

tracing-middleware

Middleware for express to enable opentracing. Supports any opentracing tracer compatible with version 0.11.0 of the opentracing javascript library.

Deprecated

Please note that this library has been moved to https://github.com/opentracing-contrib/javascript-express. Please use that version instead.

Install
install --save tracing-middleware
Usage

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}));
Options

The middleware function takes in an options object as its only argument.

t options = {
acer: [Tracer], // Defaults to the opentracing no-op tracer.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.