Sentry
Organizations, projects, releases, issues and events with stack traces, resolve, ignore (archive) and assign are agent opt-in, delete node only
Beta v0.1.0 Node.js 14 actions
About
A Graphrt plugin for the Sentry web API on sentry.io. It lists organizations, projects, releases, issues and events (with stack traces), and resolves, archives (ignores), assigns or deletes issues. It is built with the declarative REST layer (definition.mjs) plus a small pagination fix (lib/empty-page.mjs).
What it can do
- Organizations and projects: list_organizations, list_projects, list_releases
- Issues: list_issues (Sentry search syntax, default is:unresolved), get_issue
- Events: list_issue_events, get_issue_event (latest, oldest, recommended or an id), list_project_events, get_project_event
- Triage: resolve_issue (now, next release or a release), ignore_issue (archive forever, until escalating, for N minutes or until N events), update_issue (status, assignee, priority, bookmark, seen), delete_issue (node only)
- api_request: any other endpoint under /api/0 (GET only for agents), e.g. /organizations/acme/stats_v2/
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- List organizations
sentry.list_organizations - List projects
sentry.list_projects - List releases
sentry.list_releases - List issues
sentry.list_issues - Get issue
sentry.get_issue - List issue events
sentry.list_issue_events - Get issue event
sentry.get_issue_event - List project events
sentry.list_project_events - Get project event
sentry.get_project_event - Update issue
sentry.update_issue
Show all 14 actions
- Resolve issue
sentry.resolve_issue - Ignore (archive) issue
sentry.ignore_issue - Delete issue
sentry.delete_issue - Sentry API request
sentry.api_request
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
SENTRY_AUTH_TOKENRequiredUser auth token, internal integration token, or organization token (Authorization: Bearer) -
SENTRY_REGIONOptionalus (default) or de: your organization's data storage location -
SENTRY_TOOL_ALLOW_WRITEOptional1 lets agent tools resolve, ignore and update issues -
SENTRY_TOOL_TOKEN_SOURCE
How to use it
In Graphrt Desktop
- Open Plugins and search for Sentry.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
terminal
$ graphrt plugin install sentry workflow.yaml
- id: latest
type: sentry.get_issue_event
organization: acme
issue_id: "{{#start.issue_id#}}"
event_id: latest
- id: resolve
type: sentry.resolve_issue
organization: acme
issue_id: "{{#start.issue_id#}}"
in_next_release: true