Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

incident.io 7 min read Case study mediumAdept

Reducing our pager load

incident.io pages on every Sentry error, and cut the resulting noise with four quick changes instead of switching to error-rate alerting. Go Slack helpers return a separate warning for expected failures such as archived channels or missing scopes, with staticcheck deprecating the raw client. Best-effort code paths set a context-level Urgency so only Urgency=page errors wake anyone. Pub/Sub handlers page only after more than three failed attempts, and errors from sales demo accounts no longer page; one engineer spent about a week and pager load dropped sharply.

Assumes: Go error handlingError tracking and paging basics

Related posts

  • How we page ourselves if incident.io goes down

    incident.io mediumAdept

    incident.io dogfoods its own paging product and covers the case where its alerting platform itself fails with a dead man's switch. Every alert is also sent to a separate backup provider with a one-minute delay, and the backup alert is acknowledged automatically once an engineer acks the page in incident.io, including a 10-15 second retry grace period for backup alerts that haven't arrived yet. If incident.io fails to page someone, or nobody acks within a minute, the backup provider pages instead. Occasional slow acks exercise the backup path for real, and a game day that pushed 100x normal load into alert ingestion shows the kind of degradation it guards against.

  • Intermittent downtime from repeated crashes

    incident.io mediumAdept

    A poison-pill Pub/Sub message crashed incident.io's Go monolith on Heroku repeatedly, causing 13 minutes of downtime over 32 minutes. The root cause was an unhandled panic inside goroutines spawned by the Google Cloud Pub/Sub client's Receive method, which a parent goroutine's recover() cannot catch. Debugging was slowed because Go's full goroutine stack dumps overwhelmed Heroku's log rate limits, and the abrupt exit also killed Sentry reporting. The team recovered by purging suspect subscriptions, then added a recover inside the message handler and split web, worker and cron work into separate Heroku dyno tiers so worker crashes can't take down request serving.

  • Service disruption on October 20, 2025

    incident.io mediumAdept

    The October 20, 2025 AWS us-east-1 outage degraded incident.io through third-party dependencies even though it runs on Google Cloud: its transcription, SAML, telecom and status page providers were all affected. Delayed SMS and phone notifications cascaded because notification queues shared worker capacity, and slow retries stretched jobs to 30s. Fixes were blocked by a hidden Docker Hub base-image dependency in the deploy pipeline. Scaling escalation workers made things worse because dead tuples in a Postgres index made queue acquisition consume about 50% of worker capacity, and a rate-limiter bug applied limits only to the top 10 organisations. Remediations include a self-contained GCP build pipeline, region failover for Scribe, aggressive autovacuum, reworked acquisition logic, and per-provider isolated notification workers.

  • Customers over control: how we measure On-call reliability

    incident.io mediumAdept

    incident.io measures On-call reliability with two customer-centric SLIs, alert ingestion availability and notification delivery latency under 5 minutes, both targeted at 99.99% monthly. Ingestion is measured at the GCP load balancer as good minutes (under 10% error rate) over total minutes, which tolerates self-healing blips. Notification latency stops only when any provider acknowledges, backed by active-active telecom providers added after an October 2025 AWS outage. User-configured delays such as grouping windows, working-hours escalation and staged notification rules are subtracted so intentionally delayed pages still count.

  • How one quadratic webhook handler pinned our autoscaler at its ceiling

    Sentry mediumAdept

    Sentry's Control RPC deployment sat pinned at its 256-pod autoscaler ceiling (normally ~32) because three GitLab integration bugs combined. A four-year-old grouping bug attached 2,000+ installations to one shared Integration record, a webhook backfill fix enabled webhooks across all of them, and an N² installation lookup in assignment sync made each webhook trigger up to millions of cross-silo RPC calls. A misleading P95 busyness KEDA metric and asymmetric scale-up/scale-down rates masked the cause for weeks, until a per-method RPC breakdown exposed a 10x jump in one method. The fix cut average pods from ~150 to ~42 (about 72%). Lessons: verify scaling metrics actually fall as pods are added, break RPC volume down by method, and hunt N+1/N² calls that cross network boundaries.

The quest for software engineering knowledge.

Look:
Layout: