moleculer-opentracing
1.0.0 • Public • Published moleculer-opentracing
How to use it
You have to use it with a compatible opentracing tracer :
const OpentTracingMixin = require('moleculer-opentracing')
const { Tracer } = require('opentracing')
module.exports = {
mixins: [OpentTracingMixin(new Tracer())]
}
Exemple with datadog :
const OpentTracingMixin = require('moleculer-opentracing')
const Tracer = require('dd-trace').init()
module.exports = {
mixins: [OpentTracingMixin(Tracer)]
}
Package Sidebar
Install
npm i moleculer-opentracing
Weekly Downloads