moleculer-opentracing
v1.0.0
Published
Moleculer service for opentracing
Downloads
4
Readme
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)]
}