Track deployments and correlate issues with the code changes that introduced them.
A release in Sentry represents a specific version of your deployed code. By telling Sentry when you release new code, you can see which version introduced a bug, track how quickly users adopt updates, and monitor the health of each release over time.
# Install sentry-clinpm install -g @sentry/cli# Create a new releasesentry-cli releases new "$VERSION"# Associate commits with the releasesentry-cli releases set-commits "$VERSION" --auto# Mark the release as finalized (deployed)sentry-cli releases finalize "$VERSION"
Replace $VERSION with your release identifier — a git SHA, tag, or semantic version string (e.g. 2.4.1 or abc123f).
Use --auto with set-commits to automatically detect commits from your local git repository. Alternatively, use --commit "repo-name@from-sha..to-sha" to specify a commit range explicitly.
Linking commits to a release is what powers suspect commit detection. When Sentry knows which files changed between releases, it can identify the commits most likely to have introduced a regression.To associate commits, you need to:
Connect your source code repository (GitHub, GitLab, Bitbucket, Azure DevOps) in Settings → Integrations
Pass commit information when creating the release, either via sentry-cli releases set-commits or the refs field in the API
A deploy records that a release was deployed to a specific environment. Creating a deploy triggers notifications to users who are subscribed to the repository’s commit activity.
sentry-cli releases deploys "$VERSION" new \ --env production \ --name "Production deploy 2024-03-15"
Release health gives you visibility into how stable each release is after deployment.
Crash-free sessions
The percentage of user sessions that did not end in a crash. A session starts when your app launches and ends when it goes to the background or crashes.
Crash-free users
The percentage of unique users who did not experience a crash in the given release.
Release health requires the Sentry SDK to be configured with session tracking. This is enabled by default in most mobile and frontend SDKs.You can view release health on the Releases page, which shows a comparison across versions so you can immediately see if a new release is performing worse than its predecessor.
When you resolve an issue, you can choose Resolved in next release instead of just Resolved. If events for that issue appear in a later release, Sentry will automatically reopen it and mark it as a regression. This is especially useful when you’ve deployed a fix and want to confirm it worked.
Sentry can only detect regressions across releases if the release attribute is configured in your SDK and populated on incoming events.