Sentry
Connect
Connect Sentry from the terminal. Pass --help for the flags Sentry accepts.
polylane integration connect --type sentryInstall the Polylane integration on your Sentry organization.
Connect Sentry so every Sentry alert becomes a Polylane issue that an agent investigates, and agents can read your errors, traces and replays.
- Click Connect to start the Sentry installation flow.
- Choose the Sentry organization to install Polylane on.
- Review the requested access and accept the installation.
- Sentry sends you back to Polylane, and the integration is ready.
On connect, Polylane adds a Send a notification via Polylane action to every alert in the organization.
Register Sentry alerts to Polylane alongside your Terraform-managed resources.
The hourly sync adds the Polylane notification action to every alert, so a Terraform-managed alert shows drift until the action is in its Terraform config too. After the first sync, read one alert with GET /api/0/organizations/{organization_slug}/workflows/{workflow_id}/ on the Sentry API. Copy the action of type webhook that Sentry shows as Send a notification via Polylane into each action filter of your Terraform-managed alerts.
When you uninstall the integration, remove the action from your Terraform configs at the same time.
How it works
Alerts become issues
One minute after connect, and then every hour, Polylane adds the Send a notification via Polylane action to each action filter of each Sentry alert. Alerts that you create later get the action at the next hourly sync. An alert with no action filters is skipped.
When an alert fires, Sentry sends it to Polylane, and the alert becomes an issue. A fix run reads the alert, the stack trace and your code, and records a verdict. A second alert for the same problem adds an occurrence to the open issue and does not open a second one.
How the issue ends depends on the alert:
- A metric alert recovers when Sentry resolves it.
- An alert for a Sentry issue recovers when a person resolves or archives that Sentry issue.
- An alert on events or errors has no recovery. The Polylane issue resolves when the alert stays quiet.
Context graph and checks
Polylane adds Sentry to the context graph and links it to the repositories that your Sentry projects name, and to the cloud resources whose host names match the server_name tag of your events. Polylane also turns saved Discover queries into checks, at most ten for each connection.
What agents can do
During an investigation, agents search Sentry issues and events, and query errors, logs, spans, profiles and uptime results as tables or time series. They read session replays, alerts, metric monitors, metric alert firings, dashboards and projects.
Agents can also request changes in Sentry: update the status or assignee of an issue, create an alert or a metric monitor, and create or edit a dashboard. Each change needs approval before it runs.
Disconnecting
Disconnecting in Polylane stops the hourly sync, and Polylane ignores the notifications that Sentry still sends. The Polylane integration and the Polylane action on your alerts stay in Sentry. To remove them, uninstall the Polylane integration under Settings → Integrations in Sentry, and remove the action from the alerts that still have it.
Disconnect
Disconnecting stops every sync and check and deletes the credentials Polylane held. Polylane removes what Sentry's API lets it remove. The following stays until you remove it yourself:
- Sentry app installation and tokens
polylane integration disconnect <id>Tools
10Operations agents can perform in threads.