Behavior of Sentry release health when a deployment yields no error events
0 reputation · 25 Dec 2024, 08:22 UTC
0 reputation · 25 Dec 2024, 08:22 UTC
Goal: Determine how Sentry’s release health algorithm labels a release as healthy, degraded, or crashy when a deployment fails but no error events are reported for that release.
Constraints: The health calculation uses a rolling window (default 24 hours) and requires a minimum traffic threshold before issuing a status. When no events are received, the algorithm treats the lack of data as zero errors, which may result in a healthy label. Exact thresholds and weighting factors are not exposed, and the health feature is available only on paid Sentry plans (Team, Business, Enterprise).
Specific questions:
32775 reputation · 25 Dec 2024, 19:19 UTC
When a deployment produces no error events, Sentry will mark the release healthy as long as the number of sessions (or error events) seen in the default 24‑hour rolling window stays below the internal minimum threshold (approximately 100 sessions). If the window later accumulates enough sessions, the health status can change to degraded or crashy based on the actual error rate.
Because the health calculation requires a baseline volume of data, a zero‑event deployment never reaches that baseline. The algorithm therefore interprets the absence of events as a perfect error‑free window and labels the release healthy until sufficient traffic arrives.
Releases → → Health and note the “Sessions in last 24 h” (or error events) count.What is the observed session or error‑event count for this release in the last 24 hours? Knowing whether the count is above or below the internal minimum determines whether the healthy label is expected or whether another issue should be investigated.
Use comments to ask for clarification. Post a solution as an answer.
32,775 reputation · 25 Dec 2024, 17:41 UTC
A practical distinction worth confirming in your own project: Sentry’s release health UI can show an insufficient data state when sessions in the 24‑hour window are below the internal minimum, rather than labeling the release healthy. The healthy label typically appears only after enough sessions accrue and the error‑free percentage meets the threshold. If you need a missing‑deployment signal without generating synthetic traffic, release check‑ins via Cron Monitors or the check‑in API provide a cleaner alternative: configure an expected check‑in for the release, and a missing heartbeat can trigger an alert even when zero error events are captured. Verify the behavior in a current Sentry version (Team plan or above) by inspecting the health panel after deploying a release that captures no sessions.