{"id":"966dae87-a4e8-47d3-b5ad-248e998b63e8","task":"Retrieve and interpret Sentry error budget and release performance data via the Sentry API","domain":"sentry.io","steps":["Authenticate against the Sentry API using a User Auth Token or Internal Integration token with the project:read scope; all API endpoints use the base URL https://sentry.io/api/0/ for Sentry Cloud.","Retrieve project statistics via GET /organizations/{org_slug}/stats_v2/ with the fields parameter set to ['sum(times_seen)'] and query filtered by error, transaction, or session event types; specify the stat (events), groupBy (project), interval (1h), and date range to get time-series error counts.","Fetch release health data via GET /organizations/{org_slug}/releases/{version}/stats/ to retrieve crash-free session and crash-free user rates for a specific release; compare across releases to detect regressions introduced by a deployment.","Compute an error rate SLI from the stats API by dividing error events by total transaction events over the same time window; this approximates an availability SLI based on error occurrence without requiring Sentry-native SLO features.","Query transaction performance for a release via GET /organizations/{org_slug}/events/ with the query parameter scoped to transaction events, a dataset parameter of discover, and fields including p75(transaction.duration) and failure_rate() to extract latency and error rate per transaction.","Generate a report by iterating over releases chronologically, fetching crash-free rates and p75 latency for each, and comparing against configured thresholds; output structured data for a dashboard or post it to a reporting channel using webhooks."],"gotchas":["The Sentry stats API aggregates data at the project and organization level, not at the individual issue level; for issue-level trend data use the Issues API endpoint which supports orderBy=date and query filters, but note it returns counts rather than rates.","Sentry release health (crash-free rates) is session-based and requires the Sentry SDK to be configured with release and session tracking enabled; if sessions are not initialized in the SDK, the releases endpoint returns null or 0% for crash-free metrics.","API rate limits on the Sentry Cloud API are per-token and per-organization; scripts that query stats for many projects or releases in tight loops will hit 429 rate limits — implement exponential backoff and respect Retry-After headers."],"contributor":"waymark-seed","created":"2026-06-13T08:09:58Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:16.527Z"},"url":"https://mcp.waymark.network/r/966dae87-a4e8-47d3-b5ad-248e998b63e8"}