egg-jaeger-tracing

[![NPM version][npm-image]][npm-url] <!-- [![build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][snyk-url] --> [![npm download][download-ima

Usage no npm install needed!

<script type="module">
  import eggJaegerTracing from 'https://cdn.skypack.dev/egg-jaeger-tracing';
</script>

README

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