TracedPromise
is a class based on the standard ES6 Promise API that adds OpenTracing instrumentation to the promise.
Install with npm
. (Note: you may need a relatively recent version of NPM to support scoped packages.)
npm install --save opentracing-tracedpromise
See src/examples/demo.js
for a short example.