0.2.1 • Published 4 years ago

egg-jaeger-tracing v0.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

egg-jaeger-tracing

NPM version

npm download

Install

$ npm i egg-jaeger-tracing --save

Usage

// {app_root}/config/plugin.js
exports.jaegerTracing = {
  enable: true,
  package: 'egg-jaeger-tracing',
};

Configuration

// {app_root}/config/config.default.js
exports.jaegerTracing = {
  config: {
    serviceName: 'egg-server-a',
    sampler: {
      type: 'const',
      param: 1,
    },
    reporter: {
      logSpans: true,
      agentHost: 'localhost',
      agentPort: 6832
    },
  },
  options: {
    logger: {
      info(msg) {
        console.log('INFO ', msg);
      },
      error(msg) {
        console.log('ERROR ', msg);
      },
    }
  }
};

see config/config.default.js for more detail.

Example

Questions & Suggestions

Please open an issue here.

License

MIT