Documentation index for AI agents (llms.txt)
Skip to main content

Sentry

Catch the errors your visitors run into. Sentry records each one with where it happened, and WebTwizz shows them in the builder so the AI can fix them.

Connect​

  1. Open Settings > Connectors, click Sentry, then Connect.
  2. Sentry opens. Approve read access to your organization and projects.
  3. Under Finish connecting, pick the Sentry project.

WebTwizz uses the project's active client key (DSN). If it has none, you'll see No active DSN found for this project. Turn one on in Sentry and pick the project again. No projects yet? Create one in Sentry first.

Sentry goes into your project's connector code and only runs on your published site, so errors you hit in the preview aren't reported.

What you see​

Sentry errors: three unresolved, with where each came from
  • Errors, last 14 days: errors per day, then Unresolved, New this week and Events, last 24 hours. Once the site is published, New this week becomes New since last publish. Each number opens Sentry, and so does Open Sentry.
  • Errors: switch between Unresolved and Resolved recently. All errors opens the full list in Sentry, and Show more loads 10 more.
    • Each error shows how many times it happened, how many people hit it and when it was last seen. New marks errors that started after your last publish. Ones that aren't plain errors say Fatal, Warning, Info or Debug.
    • On an unresolved error, Fix with AI opens a new chat where the AI reads the error and fixes it. Resolve marks it resolved in Sentry.
    • Click an error to open it: the exception, the Page and Browser it happened in, People affected, Times, First seen, Last seen, and the Steps just before it. Ignore archives it until it starts happening a lot more, and Open in Sentry opens it there.
    • Under Resolved recently, errors resolved in the last 14 days have Reopen, which puts them back in the unresolved list.
    • Resolve, Ignore and Reopen don't ask first. The message that follows has Undo.
  • Settings:
    • Sentry project: where errors from this site are reported. Pick another project to switch.
    • Live site: Running, Publish to update or After you publish.
The Sentry account and the Sentry project setting

What the AI can do​

  • Read your unresolved errors
  • Read one error in full: the exception, the lines of your code it went through, and the steps before it, like the page someone came from and the request that failed. It reads this before fixing anything.
  • Mark an error resolved, or ignore it until it starts happening a lot more. It asks first, and only does it after you click Accept.

In a chat, the Sentry live card has Fix next to each error. Click it and the AI reads that error and fixes it.

The AI reads three Sentry errors, fixes the top one, then asks before marking it resolved

Secrets​

  • NEXT_PUBLIC_SENTRY_DSN: the DSN of the project you picked, used by Sentry in the browser and on the server

Good to know​

  • Sentry accounts connected before the overview arrived don't have permission to read errors. The connector says Sentry needs one more permission. Click Connect again and approve. Errors keep being reported the whole time.
  • Removing Sentry from a project takes NEXT_PUBLIC_SENTRY_DSN out. Your Sentry organization, projects and events are untouched.