OpenTelemetry Web
This module provides automated instrumentation and tracing for Web applications.
For manual instrumentation see the
@opentelemetry/web package.
How does automatic tracing work?
Automatic Instrumentation is in progress, manual instrumentation only supported
Installation
npm install --save @opentelemetry/web
Usage
const { WebTracer } = require('@opentelemetry/web');
const webTracer = new WebTracer();
const span = webTracer.startSpan('span1');
webTracer.withSpan(span, function () {
this.addEvent('start');
});
span.addEvent('middle');
span.end();
Useful links
License
Apache 2.0 - See LICENSE for more information.