Skip to content

Official plugin: Sentry (turn an error into an issue, give the agent the error context) #3558

Open

Description

@integry

Goal

An error reported by Sentry can become a ProPR task with the stack trace attached, and the agent can read the error details while fixing it.

Behaviour

  • Mapping: settings map a Sentry project to a GitHub repository.
  • Intake: Sentry sends issue or alert webhooks to the plugin's inbound URL. For a mapped project the plugin creates a GitHub issue: title from the error title, body with culprit, first/last seen, event count, environment, a trimmed stack trace of the latest event and a link to Sentry. De-duplicated by Sentry issue id: one GitHub issue per Sentry issue, later events add nothing.
  • Starting work is off by default: by default the created issue has no trigger label, so a person decides. A setting "Start a task automatically" adds the trigger label, guarded by: minimum event count, allowed environments (default: production only), and a daily cap on automatically started tasks per repository (default 3). When the cap is reached the issue is still created, without the label, and says why.
  • Sync back (switchable): when the pull request merges, comment on the Sentry issue with the pull request link; optionally mark it resolved.
  • Agent context: contributes Sentry's MCP server as a read-only managed library item (if the vendor's remote MCP server accepts ProPR's sign-in; otherwise use a token-authenticated endpoint if the vendor documents one, or omit and say so in the README), and a skill instructing the agent to open the linked Sentry issue, read the latest event and reproduce before fixing.
  • Error data is untrusted content: it is placed in the issue body inside a clearly delimited block and cannot select repository, labels or model. Request bodies, user data fields (emails, IPs, cookies, headers) and breadcrumbs are not copied into the GitHub issue.

Connection: a Sentry internal-integration token and its webhook signing secret (verify the documented signature header). Confirm payloads, signature scheme and API endpoints against Sentry's official documentation while implementing; record the links in the README. Self-hosted Sentry is supported by a base-URL setting, subject to the endpoint policy.

Acceptance criteria

  • Fixture-based tests: a webhook for a mapped project creates one issue with the expected fields; repeats create none; unmapped projects do nothing; bad signature is rejected before plugin code runs.
  • Automatic start honours event count, environment and the daily cap; with the setting off no trigger label is ever added.
  • Personal data fields listed above never appear in the created issue (sentinel fixture).
  • Sync back posts once on merge when enabled.
  • README with setup, permissions and a manual smoke-test checklist; docs/docs/plugins/sentry.md.

Implementation

  1. packages/plugins/sentry/ with manifest, handlers, fixtures, tests, README, skill bundle.
  2. Stack-trace trimming helper (frame limit, in-app frames first, length cap) inside the plugin.
  3. Daily cap counter in ctx.state keyed by repository and UTC date.
  4. Docs page.

Notes

Depends on the inbound webhooks issue. Keep automatic start conservative: an alert storm must not be able to start unbounded work.

Activity

  1. added
    base-3542-epic-plugin-system-xu8
    on Nov 14, 2026
  2. propr-dev commented on Nov 17, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3558/claude-opus-5-5-official-plugin-sentry-tu-20261117-0253-la3
    • Base Branch: 3542-epic-plugin-system-xu8
    • Worktree: issue-3558-20261117-0253-claude-opus-5-5-la3

    🔍 Track Task Execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AI-doneauto-mergebase-3542-epic-plugin-system-xu8llm-claude-opus55propr-planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions