Monitor web application performance, views, sessions, requests and more with dash0's website monitoring
The website monitoring features and the web SDK are currently available as a beta release. Please reach out to us with any question or feedback.
Use the Dash0 web sdk to instrument your web application for our website monitoring features. It allows to observe end-user page loads, website performance, sessions, fetch requests and errors. And seamlessly integrates website monitoring with your existing telemetry signals. It is 100% open source and its code and detailed documentation is available on github.
You'll need a couple of prerequisites before you can start using the sdk:
Due to the nature of client monitoring the auth token used will be public. Please make sure to take the following
precautions: * Use a separate token, exclusively for web monitoring * Limit the tokens dataset to only the dataset you
want to ingest to * Limit the tokens permissions to Ingesting
Next we'll need to install the sdk's package
Finally the sdk needs to be initialized. This should happen as early as possible in your applications lifecycle. If you are using Next.js you can use their instrumentation-client.js file, but initialization is generally framework agnostic.
Here is a simple example:
Most SDK features will work via auto instrumentation and do not require you to make any changes to your application beyond initializing the sdk. However these can be enhanced and extended with application specific data if you want. The following examples will give you a short overview on how to do this, please refer to the sdk's repository for additional details.
Consult the Dash0 documentation to learn more about the website monitoring features, or visit the Dash0 SDK Web Repository to learn more about the sdk.