← All platforms

Astro error tracking

A mostly static site can still have very real errors. Connect Astro’s Sentry integration to Telebugs and keep reports from your pages and islands on your server.

~/hoofnotes  npm install @sentry/astro
~/hoofnotes  nvim astro.config.mjs sentry.client.config.ts sentry.server.config.ts
import { defineConfig } from "astro/config";
import sentry from "@sentry/astro";
export default defineConfig({
integrations: [sentry()],
});
import * as Sentry from "@sentry/astro";
Sentry.init({
// Copy the complete Telebugs DSN, key and path included.
dsn: "YOUR_TELEBUGS_DSN",
});
import * as Sentry from "@sentry/astro";
Sentry.init({
// Copy the complete Telebugs DSN, key and path included.
dsn: "YOUR_TELEBUGS_DSN",
});
~/hoofnotes  npm run dev

Space pauses or resumes. R replays. Escape shows the complete setup.

Hang on, I already use Sentry

Keep @sentry/astro and change its destination to your Telebugs DSN. Your error reports stay on your server. You don’t need a Sentry account.

What about islands and server-rendered pages?

The Astro SDK has client and server connections. Browser errors and server-rendering exceptions can both reach Telebugs; component-specific handling still follows the framework used by each island.

Will I recognize my source code?

Yes. Give Telebugs the matching source maps and it can show your original files and line numbers instead of a minified backtrace.