1.0.0 • Published 5 years ago
moleculer-opentracing v1.0.0
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)]
}
1.0.0
5 years ago