By Adding Spotlight to your Astro application, you can get deep insights into errors and performance issues across your entire stacks.
On this page you’ll learn how to install and add Spotlight to your Astro Dev Toolbar with just one command.
Start by adding the @sentry/astro and @spotlightjs/astro dependencies:
The Astro CLI should have already added the Sentry & Spotlight integration to your astro.config.mjs file during installation.
It should look similarly to the example below. Otherwise, import and register the Sentry and Spotlight integrations:
3. Configure Other Sentry SDKs
If your Astro application is interacting with other services, such as a Python API, you can also configure those SDKs to work with Spotlight. You don’t need to be using the Sentry service to take advantage of Sentry’s SDKs to power Spotlight.