sentry.sync_errors ​
Sync Sentry issues and events to database
Sync Sentry issues and events to DB (no PII). Triggered only by explicit POST /api/app/sentry/sync.
DB operations use context.session (ADR-011). Sentry API calls use self.get_plugin("sentry").
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-sentry |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | Yes | — | Sentry cloud-connection UUID |
organization_uuid | uuid | Yes | — | Organization that owns the connection |
sentry_project_uuid | uuid | No | — | Optional filter: sync only this Sentry project |
organization_slug | string | No | — | Optional filter: Sentry organization slug |
project_slug | string | No | — | Optional filter: Sentry project slug |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | string | No | — | — |
organization_uuid | string | No | — | — |
sentry_project_uuid | string | No | — | — |
organization_slug | string | No | — | — |
project_slug | string | No | — | — |
issues_synced | integer | No | — | — |
events_synced | integer | No | — | — |
completed_at | string | No | — | — |
failed_at | string | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | sync_issues | Sync started |
syncing_errors | No | No | — | complete | Syncing events |
syncing_issues | No | No | — | sync_errors | Syncing issues |
completed | No | Yes | Yes | — | Sync complete |
failed | No | Yes | No | — | Sync failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | sync_issues | syncing_issues | — |
syncing_issues | sync_errors | syncing_errors | — |
syncing_errors | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "sentry.sync_errors",
"initial_data": {
"connection_uuid": "value",
"organization_uuid": "value"
}
}