This example shows how to use @opentelemetry/web with different plugins and setup to instrument your JavaScript code running in the browser.
$ # from this directory
$ npm install$ # from this directory
$ npm startBy default, the application will run on port 8090.
To see the results, open the browser at http://localhost:8090/document-load/ and make sure you have the browser console open. The application is using the ConsoleSpanExporter and will post the created spans to the browser console.
The screen will look as follows:
To see the results, open the browser at http://localhost:8090/xml-http-request/ and make sure you have the browser console open. The application is using the ConsoleSpanExporter and will post the created spans to the browser console.
The screen will look as follows:
- For more information on OpenTelemetry, visit: https://opentelemetry.io/
- For more information on web tracing, visit: https://github.com/open-telemetry/opentelemetry-js/tree/master/packages/opentelemetry-web
Apache License 2.0

