API referenceConsole
observability
Polylane watches your Sentry errors, searches events to find the cause, and fixes the code behind the stack trace.

Connect

Connect Sentry from the terminal. Pass --help for the flags Sentry accepts.

Terminal
polylane integration connect --type sentry

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
Terminal
polylane integration disconnect <id>

Tools

10

Operations agents can perform in threads.

Api
Call any Sentry REST endpoint that lacks a dedicated tool
Projects
Read Sentry projects (list, get, stats)
Issues
Read or update Sentry issues, events, tags, and hashes
Alert Rules
Read or create Sentry alerts (issue alert rules)
Metric Alerts
Read or create Sentry metric monitors (metric alert rules)
Incidents
Read Sentry metric alert firings
Replays
Read Sentry session replays
Dashboards
Read, create, or edit Sentry dashboards
Query Discover
Run a Discover query in Sentry
Query Timeseries
Run a Sentry events timeseries query