Package Exports
- express-jaeger
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (express-jaeger) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
express-jaeger
A simple Jaeger middleware to tracing requests for your Express JS app.
Installation
$ npm i --save express-monitorUse it as middleware:
Basic Usage
const tracing = require("express-jaeger");
const express = require("express");
const server = express();
const serviceName = "my-service";
const spanName = "my-span";
const config = {
serviceName,
reporter: {
collectorEndpoint: "http://localhost:14268/api/traces",
agentHost: "localhost",
agentPort: 6831,
logSpans: true
},
sampler: {
type: "const",
param: 1
}
}
server.use(tracing(serviceName, config))
server.listen(3000);