Sentry can start a session when an issue alert fires or a metric alert becomes critical. The Sentry integration is not generally released yet; contact [Support](/docs/support) for access.

## Connect and configure alerts

<span id="quick-start" />

1. Connect Sentry from the Ellipsis integrations settings and complete the installation in your Sentry organization.
2. In Sentry, set each project's issue or metric alert rule to notify the Ellipsis integration. Installing the integration alone sends no alerts.
3. Merge `sentry.yaml` at the root of your organization's `.ellipsis` repository.
4. Send a test alert from Sentry and check that a session starts and delivers its report.

Sentry credentials stay in the integration settings; `sentry.yaml` only chooses which alerts start a session and what the session does. Slack reports also need a connected Slack workspace.

## Route alerts

This agent investigates alerts from every project in one Sentry organization and posts a short Slack report for each:

```yaml
ellipsis:
  kind: sentry
  name: Production error reports

sentry:
  organizations: [my-sentry-org]
  projects: ['*']
  on: [issue_alert, metric_alert]

session:
  codex:
    prompt: |
      Investigate the alert and send one report to #eng-ops, at most
      three short lines and 70 words. Include the project, Sentry link,
      impact, and next step. Link the causing PR only when supported by
      evidence. Tag its author only after verifying their Slack identity.
      If attribution is uncertain, say so. Do not open a fix PR.
    model: gpt-6.1-sol
  environment:
    repositories:
      - name: api-repo
  mcp:
    - name: slack
  permissions:
    github: read_only
  budget:
    session: 2
```

An alert starts a session only when its organization, project, and alert type all match. Don't mix `'*'` with names in the same list.

## Delivery

An issue alert starts at most one investigation every 6 hours. A metric alert starts one only when it becomes critical, not on warning or resolved. Repeated deliveries of the same alert are ignored.

While `sentry.yaml` exists, it handles every Sentry alert, and agents with a `sentry` trigger don't run, even when the file is disabled. Delete the file to use those agents instead.

The default-branch version is live, and an invalid edit keeps the last valid one. Only the copy in the `.ellipsis` repository counts.

## Fields

| Field | Type | Meaning |
| --- | --- | --- |
| `ellipsis` | `object`, required | Identifies the file. |
| `ellipsis.kind` | `string`, required | `sentry`. One of `sentry`. |
| `ellipsis.name` | `string` | A name for the file, unique within the account. |
| `ellipsis.description` | `string` | Description shown in the dashboard. |
| `ellipsis.enabled` | `boolean` | `false` stops investigations. Default `true`. |
| `ellipsis.metadata` | `object` | `labels` and `annotations` for your own use. |
| `ellipsis.metadata.labels` | `list of string` | Short tags. |
| `ellipsis.metadata.annotations` | `map of string` | Free text values by key. |
| `sentry` | `object`, required | Which alerts start a session. An alert matches when its organization, project, and alert type all match; don't mix `'*'` with names in the same list. |
| `sentry.organizations` | `list of string` | Sentry organization slugs. Default `['*']`. |
| `sentry.projects` | `list of string`, required | Project slugs, or `['*']` for every project. |
| `sentry.on` | `list of string` | Which alerts start a session. Default `[issue_alert, metric_alert]`. One of `issue_alert` (An issue alert fires), `metric_alert` (A metric alert becomes critical). |
| `session` | `object`, required | Works like an [agent's](/docs/agents/schema#session-settings) `session` block, including `budget`. |
