OpenCensus for Node.js Base

OpenCensus Node.js Base is an implementation of OpenCensus, a toolkit for
collecting application performance and behavior monitoring data.
The library is in alpha stage and the API is subject to change.
Please join gitter for help or feedback on this project.
Installation
Install OpenCensus Base with:
npm install @opencensus/nodejs-base
Traces
Automatically Instrumenting an Application
For automatic insturmentation see the
@opencensus/nodejs
package.
Manually Instrumenting an Application
With @opencensus/nodejs-base you have a full control over instrumentation and
span creation. The base package doesn't load Continuation Local Storage (CLS)
or any instrumentation plugin by default.
const rootSpanOptions = { name: 'your root span' };
tracing.tracer.startRootSpan(rootSpanOptions, (rootSpan) => {
childSpan = tracing.tracer.startChildSpan({
name: 'name of your child span'
});
childSpan.end();
rootSpan.end();
});
Tracing Options
See the @opencensus/nodejs package for the full API documentation.
Useful links