What you’ll see
Sentry
- Details: the health card turns orange while an unresolved issue seen in the last 24 hours is escalating (Sentry saw it spike) or regressed (it came back after you resolved it), and names the busiest one. Otherwise it says how many unresolved issues Sentry saw that day. It also turns orange when Sentry hasn’t answered three times in a row.
- Last 24 hours: the unresolved issues seen, with how many are new, and the errors Sentry accepted. “At least” when there were more than the page reads.
- Errors: the errors Sentry accepted each hour for the last 24 hours, for the whole organization. A regression shows here as a spike. On a day with no errors at all there’s no chart.
- Issues: every unresolved issue seen in the last 24 hours: escalating ones first, then regressed and new ones, each saying so, then the rest with when they were last seen. Each part runs busiest first. A row shows its project, its events that day and where in the code it happens; a fatal one is red. Seven show at once, with Show N more up to 60. A click opens the issue’s page. Resolve and Archive sit at the end of each row, and each asks first. Archive keeps the issue out of the way until Sentry sees it escalate.
- Projects: every project, busiest first, with its errors in the last 24 hours and an escalating or regressed issue if it has one. Four show at once. A click opens the project’s page.
Project
One page for every project, titled with its name: its unresolved issues and errors for the day, its latest release, its errors an hour, and its issues with the same buttons. It reads that project on its own, so it shows issues a busy organization’s overview leaves out.
Issue
One page for every issue, titled with its short ID.
- Issue: escalating, regressed, new, ongoing, resolved or archived, and its title. Escalating and regressed turn it orange, and an archived issue is grey. A click opens it in Sentry. Its corner has Resolve and Archive, or Unresolve once it’s resolved or archived.
- Events: its events each hour for the last 24 hours.
- Details: its events in the last 24 hours, when it was last and first seen, its events and users of all time, the first and latest release it was seen in, where in the code, and its level and priority.
Status
- Watches the unresolved issues seen in the last 24 hours.
- Orange while one is escalating or regressed, and after three reads in a row that Sentry doesn’t answer.
- Never red, and new or ongoing issues don’t count as a problem.
- Shows in Details and notifies you when it turns orange or red.
How it connects
The pages read Sentry’s API at /api/0/ with a token as a bearer token. sentry.io and a Sentry server answer the same way.
Requests it makes on its own 6
- GET
/organizations/{org}/issues/?query=is:unresolved+is:escalating &statsPeriod=24h &sort=freq… Escalating issues seen in the last 24 hours, busiest first. Three more requests ask for regressed, new and ongoing ones.
Sentry, ProjectOnce a minute
- GET
/organizations/{org}/stats_v2/?category=error &outcome=accepted &groupBy=outcome &statsPeriod=24h &interval=1h… Errors accepted each hour.
Sentry, ProjectOnce a minute
- GET
/organizations/{org}/stats_v2/?… &groupBy=project… Each project’s errors in the last 24 hours.
SentryOnce a minute
- GET
/organizations/{org}/projects/?per_page=100 The projects.
SentryOnce a minute
- GET
/projects/{org}/{param.id}/The project’s name and latest release.
ProjectOnce a minute
- GET
/organizations/{org}/issues/{param.id}/The issue, with its events each hour.
IssueOnce a minute
Requests it makes when you act 1
- PUT
/organizations/{org}/issues/{id}/Changes the issue’s status.
All threeWhen you press Resolve, Archive or Unresolve
Sentry’s API docs have the rest. Sources and buttons explains each part of a page.
Set it up
- Make a token. In Sentry’s settings for your own account, create a personal token (Sentry also calls it a user auth token) with Read access to Organization, Project, and Issue & Event. Choose Read & Write for Issue & Event if you want Resolve and Archive to work. An organization token (one that starts
sntrys_) can’t read issues. - Find your organization’s slug. It’s the part after
/organizations/in Sentry’s addresses, or the first part of your<slug>.sentry.ioaddress. - Save the token in Legato. In Settings → Secrets, save it under
sentry, bound tosentry.io,de.sentry.ioor your server’s address. You can also link a 1Password reference. - Add the pages. Paste the prompt into your agent, or download the three pages. In each one, replace
tidewater-appswith your organization’s slug. For an organization in the EU, change the address on every source tohttps://de.sentry.io; for your own server, to the address you open it at, such ashttps://sentry.example.comorhttp://192.0.2.20:9000. Then run/Applications/Legato.app/Contents/Helpers/legato set sentry-issue sentry-issue.json,legato set sentry-project sentry-project.jsonandlegato set sentry sentry.json. Keep the IDssentry-projectandsentry-issue: every row opens them with its project’s or issue’s ID.
The cards fill within a minute. A mistyped token or slug is the usual reason they don’t, and so is a token missing one of the Read scopes; the page notes the error Sentry sent. A Sentry server with a self-signed certificate works at an IP address or a .local name.
Prompt for your agent
Add 3 Legato pages for Sentry, starting from https://legatobar.com/examples/sentry.json, https://legatobar.com/examples/sentry-project.json, https://legatobar.com/examples/sentry-issue.json. Use the page IDs sentry, sentry-project, sentry-issue if they’re free: the pages link to each other by those IDs, so with any other ID, change the matching legato://page/ links.
Add all three pages as they are, keeping their page IDs. For my own server or an EU organization, set the url of every source on all three pages to its address; for sentry.io in the US, leave https://sentry.io. Replace tidewater-apps in every path, and in the buttons’ paths, with my organization’s slug. I’ll save my Sentry token as sentry in Settings → Secrets myself. Don’t press Resolve, Archive or Unresolve to test them.
Use the local Legato MCP tools or /Applications/Legato.app/Contents/Helpers/legato.
Use list_pages first and choose an unused page ID. Do not overwrite an existing page. If I explicitly ask to update one, read its full body with get_page, preserve unrelated cards and settings, and use if_match with that version. On version_mismatch, read again before merging.
Ask me only for non-secret setup details that are missing. Never ask me to paste a password, token or API key into chat, page JSON or command arguments. Tell me to save it in Settings → Secrets for the service host, or link it from 1Password there.
Use the downloadable page, not the illustration’s sample data. Never invent readings. Fix any invalid_page paths and verify that the page loads. Do not press buttons that change the service or real devices to test it.Download the pages
Questions
What’s the difference between escalating and regressed?
Sentry calls an issue escalating when it’s getting many more events than it usually does, and regressed when it happens again after you resolved it. Both turn Details orange. New means Sentry first saw it in the last week; ongoing is everything else that’s unresolved.
Why don’t the numbers match Sentry’s Issues page?
The pages count what Sentry saw in the last 24 hours, and Sentry’s Issues page usually covers a longer period. The errors are every error Sentry accepted for the organization, including those in issues that are resolved or archived and in projects your token can’t open.
Why does it say “At least”?
The page reads up to 25 escalating, 25 regressed, 25 new and 60 ongoing issues each minute. When one of those comes back full there are more, so the count says “At least”. A project’s page reads that project on its own.
What happens when I press Resolve?
Sentry marks the issue resolved and it leaves the list. If it happens again, Sentry marks it regressed and it comes back, in orange. Unresolve on the issue’s page puts it back by hand.
Why can’t it connect to sentry.io?
Some ad and tracker blocklists block sentry.io, on a router, a Pi-hole or the Mac itself. If the pages can’t reach it, allow sentry.io (or de.sentry.io) there.