Releases and release health
See crash-free sessions and users, errors, new issues and adoption for each release, built from Sentry SDK session data.
Release health tells you whether a deploy made things worse: how many sessions
and users ran without a crash, how many errors and new issues the release
brought, and how much of your traffic is on it. It is built from the session
updates a Sentry SDK sends, plus the release on error events. Open
Releases in the dashboard to see it.
Send session data
Set release (and usually environment) when you initialise a Sentry SDK
pointed at your axonpush DSN. Sentry SDKs send session updates by default.
import sentry_sdk
sentry_sdk.init(
dsn="https://<public-token>@api.axonpush.xyz/<project-id>",
release="checkout@2.4.1",
environment="production",
)axonpush accepts both forms of session data:
sessionitems, one per user session, from client and mobile SDKs.sessionsitems, pre-aggregated per minute, from server-mode SDKs.
A session without a release is dropped, so a release that never sets one never
appears here. Sessions are scoped to the environment of the DSN’s public token;
the environment attribute the SDK reports does not change that.
Errors are counted per release from the release attribute on error events,
which the Sentry SDK sets from the same option. Errors from OpenTelemetry or the
axonpush SDK count too when they carry a release.
What the numbers mean
| Field | Meaning |
|---|---|
sessions | Sessions started in the window |
crashedSessions, erroredSessions, abnormalSessions | Sessions that ended in that state |
crashFreeSessionsPct | (sessions - crashedSessions) / sessions × 100 |
users, crashedUsers, crashFreeUsersPct | The same per distinct user (the SDK’s did, stored hashed) |
errors | Error events carrying this release in the window |
newIssues | Issues whose first stored event falls in the window and carries this release |
adoptionPct | This release’s share of all sessions in the window |
firstSeen, lastSeen | First and last session or error seen for the release |
Percentages are 0 to 100 and are left out when there is nothing to divide by, for example a release that has errors but no sessions. Session counters are stored per hour and user counts per day, so short windows are approximate at the edges.
In the dashboard
Releases shows a sortable table: Release, Crash-free, Crash-free users, Adoption, Sessions, Errors, New issues, First seen and Last seen. Filter by version with the search box and choose the time window. Open a release for its hourly Sessions chart (healthy, errored, crashed, abnormal) and Details.
From the release panel, Create alert opens a new crash_free_rate alert
rule prefilled with that release. View errors opens the Errors page, which
has no release filter yet, so it shows all issues.
API
# Every release with sessions or errors in the last 24 hours, in production
curl -s "https://api.axonpush.xyz/releases?environmentId=prod&window=24h" \
-H "X-API-Key: $AXONPUSH_API_KEY"
# One release, with its hourly series
curl -s "https://api.axonpush.xyz/releases/checkout@2.4.1?window=7d" \
-H "X-API-Key: $AXONPUSH_API_KEY"windowis one of1h,6h,24h,7d(default),14dor30d.environmentIdtakes a slug or ID. An API key bound to an app or environment is always limited to it: release health is recorded per app, so an app-bound key sees only its own app’s sessions, users and errors.GET /releasesreturns up to 200 releases, most recently seen first.GET /releases/{release}addsseries: one entry per hour withstarted,exited,errored,crashed,abnormalandunhandled. It returns404when the release has no data in the window. URL-encode release names that contain/or other reserved characters.
Both need observe:read. Session and user aggregates are kept for 30 days.
Release reads have no appId filter. With a dashboard session or an unbound
key, releases from every app in the organisation appear together, so use
distinct release names per app (Sentry’s package@version convention works
well), or read with a key bound to the app.
Alert on release health
Create an alert rule with metric: crash_free_rate, scoped
with release (empty means every release) and environmentId. The rule is
skipped while there are no sessions in scope. The threshold is a percentage
from 0 to 100, the same scale as crashFreeSessionsPct.
Related
- Errors and issues
- Coming from Sentry
- MCP tools:
releases_list,releases_get - API: list releases, get release