·StoryRoll

The Error That Was Our Error Tracker

On November 10, 2026, we deleted a feature from our error tracker because the feature was the error. In the previous 30 days, production had sent Sentry about 780 error events. 666 of them were the same message:

Error when loading integration: replayIntegration

That is 85% of everything Sentry heard from StoryRoll in a month, and none of it was about StoryRoll.

What the message meant

Sentry has a session replay feature. It records what a player's screen did in the moments before an error, so you can watch the bug instead of guessing at it. To keep the main bundle small, the replay code is not shipped with the app. It is fetched later, as a separate download from Sentry's own CDN, through a lazyLoadIntegration("replayIntegration") call in sentry.client.config.ts.

When a browser or an ad blocker refuses that download, the SDK throws. And the SDK is very good at its job, so it reports its own failure to Sentry, which files it next to the real bugs.

The breakdown by platform looked like a normal slice of our players: Windows Chrome 185, Android Chrome 169, Linux Chrome 83, and a long tail after that. Nothing was broken for any of them. The story loaded, the dice rolled, the Game Master answered. The only thing that failed was a recorder they never saw.

What replay was giving back

We checked the other side of the ledger. In the same 30 days, Sentry recorded 36 replays. Between October 13 and November 8 it recorded none at all.

So the trade was 666 noise events a month, counted against the error quota and stacked on top of everything we actually needed to read, in exchange for a feature that had gone quiet for almost four weeks.

The fix we didn't take

There was a one-line way out. Sentry has an ignoreErrors list. Add the message, the noise stops, replay stays.

We didn't. The list was left exactly as it was, and nothing new got muted. Muting would have kept a download that a lot of browsers refuse, kept a feature that was barely recording, and hidden the one signal telling us both of those things.

Instead the change removes replay outright: the two replay sample rates and the lazy-load call. Error capture and tracing are untouched. PostHog keeps recording sessions, so we still have a way to watch what players did when we need to.

The diff was 4 lines added and 13 removed in the Sentry config. After the build, the shipped code no longer contained the "Error when loading integration" string, the browser made zero requests to Sentry's CDN on Home, Explore and Sign in, and errors still reached Sentry. Shared first-load JavaScript went from 187 kB to 186 kB. A small bonus.

The sweep runbook we use to triage Sentry got a note too: if that message shows up now, it should only come from a tab still open on an older build.

What it changed

It shipped the same day as a sibling fix: lazy-loaded screens that fail to download no longer take the whole page down, and that failure is now counted. Same theme from the other direction. A download that doesn't arrive should be measured, not allowed to break the page or bury the logs.

The lesson is boring. An error tracker is only as useful as the share of its inbox that is true. Ours was about 15% true for a month, and the other 85% looked like ordinary traffic.

That leaves about 114 errors from the same month that were real. How many of them did we scroll past?

S

Written by StoryRoll

Founder of StoryRoll. Building AI-powered tabletop RPGs.

Share:Share on X

Related Posts