JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q48029F
  • License MIT

A simple Jaeger middleware to tracing requests for your Express JS app.

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-jaeger

Use 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);