Monitor your Astro Site with Sentry
As Astro’s Official Monitoring Partner, Sentry offers a comprehensive application monitoring and error tracking service designed to help developers identify, diagnose, and resolve issues in real-time.
Sentry’s Astro SDK enables automatic reporting of errors and tracing data in your Astro application.
Project Configuration
Section titled Project ConfigurationA full list of pre-requisites can be found in Sentry Astro docs here.
Install, Configure and Verify
Section titled Install, Configure and VerifySentry captures data by using an SDK within your application’s runtime.
-
Install the SDK by using the astro CLI:
The astro CLI installs the SDK package and adds the Sentry integration to your
astro.config.mjs
file.To finish the setup, configure the Sentry integration.
-
Configure Get started by adding your DSN to your
astro.config.mjs
:Once you’ve added your dsn, the SDK will automatically capture and send errors and performance events to Sentry.
-
Verify