Sentry Ad Blocker Tunnel Rebuild: What It Means for Your Error Data
Sentry just rebuilt its JavaScript tunnel so ad blockers stop eating error events. Here's what a tunnel does, what it costs you to run, and how to check what your own frontend is losing.
Picture a bug report that says "checkout is broken," and an error dashboard that says everything's fine. Same day, same release. Nobody's lying. One of the people hitting that bug runs a blocker, and the error report your app tried to send never left their browser. The Sentry ad blocker tunnel rebuild is aimed at exactly that gap.
That gap is what Sentry wrote about on December 1, 2026, in a post titled "Digging better tunnels: keeping Sentry events from getting lost to ad blockers". If you track browser errors with any tool, the problem isn't Sentry's alone. It's yours too.
This is a news explainer. We'll cover what Sentry changed, why the old approach was fragile, what a tunnel costs you to operate, and how to find out what your own frontend is losing.
What the Sentry ad blocker tunnel changes
Sentry's summary is blunt: "Ad blockers drop requests to Sentry, so errors and traces from some of your users never arrive." Their fix is a tunnel, which sends events through your own server first. The old tunnels, they say, were fragile and only worked out of the box in a couple of frameworks.
As of version 11.13 of Sentry's JavaScript SDKs, the setup is tunnel: true in the browser and one integration on the server, in any JavaScript runtime they support (per Sentry's post, December 2026).
The reasoning is worth reading even if you never touch Sentry. Three details stood out.
The block lists are specific. Sentry says popular lists include its ingest domain, its old Next.js tunnel path, and some customers' own custom tunnel paths. So hiding behind a clever fixed name like /monitoring didn't last. Sentry says that path got added to a block list.
A random path per build broke things. The obvious answer to "fixed paths get listed" is a random path generated at build time. Sentry describes two ways that fails. When the browser and server builds run as separate steps, each rolls its own path and you get 404s. And with continuous deployment, a browser still running last deploy's bundle posts to a path the new server no longer serves, so those events are lost until the page reloads.
The new path comes from the DSN. A DSN is the public URL that identifies a Sentry project. Both sides now derive the tunnel path from a hash of it, so there's no build step to disagree about. Sentry picked a 32-bit FNV-1a hash because the path is needed synchronously during init and it runs in every runtime without dependencies. It isn't cryptographic, and Sentry notes it doesn't need to be, since a DSN is already public.
They also admit the catch. Blockers can still work out which popular sites use which hashes and list those specifically. Their current answer is to rotate the DSN every so often.
Why browser error reports get lost in the first place
Most people assume ad blockers only hide ads. That's the old picture.
A blocker is a URL matcher. It holds a long list of addresses and patterns, and any request that matches gets dropped before it leaves the browser. Analytics hits, session replay uploads and error reports are all just requests. If the destination is on a list, it's gone.
Sentry's author makes a point that applies to every tool in this category: they can't even tell how many events they lose to ad blockers, because the client reports that would measure it get blocked as well.
Sit with that for a second. The measurement is subject to the same loss as the thing being measured. Your dashboard can look healthy and complete while a slice of your audience is invisible. Frankly, that's the most irritating part of the whole category: a tool that can't count its own blind spot is hard to defend in a postmortem. Our opinion is to assume you're undercounting until you've checked, and to treat any "zero errors this week" screenshot with suspicion.
And that slice isn't random. People who install blockers skew technical. They're more likely to be developers, power users and security-conscious customers. Honestly, those are often the users whose bug reports you most want to see. We'd call that an editorial opinion, not a measured result, so treat it as a hypothesis to test.
What a tunnel actually does
The mechanism is simple enough to hold in your head.
Without a tunnel, the browser sends error data straight to the vendor's domain. With one, the browser sends it to your own origin, something like app.example.com/some-path, and a handler on your server forwards the payload on. Sentry's reasoning is that blockers tend to let same-origin requests through, because blocking them would break the site.
Two parts, then:
- The browser SDK points at the tunnel URL.
- A server handler receives those requests and forwards them upstream.
Sentry's post is candid about how much work part two turns out to be, and this is the section we'd forward to anyone planning a DIY tunnel.
The tunnel is a small backend you now own
Sentry says owning the tunnel means "the SDK now owns a backend." The list of problems it describes reads like a checklist for your own handler:
- Open proxy risk. A tunnel that forwards anything is an open proxy. Sentry's handler only forwards envelopes for DSNs on an allow list.
- Everyone looks like one visitor. If the server forwards every event, the vendor sees the same IP address and user agent for every visitor. The handler has to pass along what describes the visitor (IP, browser, where the request came from) while leaving cookies behind.
- Crashes from odd input. Sentry lists bugs it hit across runtimes: HTTP/2 pseudo-headers that Fetch rejects, middleware that leaves the request body unreadable, malformed
Hostvalues, and connection headers that HTTP/2 forbids. Several of those took down the server. - Overhead. Adding a request handler to your app adds work to every request, so the first check, whether a request is a POST to the tunnel path, has to be cheap.
None of this is a reason to avoid tunnels. Probably. It's a reason to treat one as production code, with tests, monitoring and an owner, and not as a config line you set once.
The tradeoff: more complete data, more to maintain
Let's be fair to both sides, because this is where posts about tunnels usually go soft.
What you gain: reports from users who'd otherwise be invisible. For an error tracker, completeness is the product. A tool that misses a slice of crashes gives you a biased picture of your release quality.
What you take on:
- A handler on your server that has to be patched, secured and monitored (and yes, you'll want monitoring on the thing that carries your monitoring).
- Extra traffic through your infrastructure. Every error and every trace now crosses your servers before it reaches the vendor.
- A privacy review. Sentry says tunnel traffic is error and performance data about the app, forwarded without cookies. Your legal team may still want it documented, particularly if payloads can contain user identifiers.
- An arms race. Sentry's own admission that hashes can be listed over time means first-party delivery is ongoing upkeep, not a one-time fix.
Is it worth it? Depends on how much of your audience blocks, and nobody can answer that for you in general. That brings us to the useful part.
How to check what your frontend is losing
You don't need a tunnel to find out whether you need one. You need one comparison.
- Pick a signal that doesn't travel the same route. Server-side logs, load balancer request counts and support tickets all reach you without passing through the visitor's browser.
- Compare counts for the same period. If your server saw 10,000 checkout submissions and your browser analytics saw noticeably fewer page views for the thank-you page, the gap is your first estimate. It includes more than blockers (flaky networks, tab closes, consent choices), so treat it as an upper bound.
- Match errors to reports. When a user writes in about a bug, find out whether your error tracker has a matching event. Do this a few times and a pattern shows up quickly.
- Segment by browser. Some browsers ship with a blocker built in, as Sentry's author notes. A sharp drop in events from one browser family is a hint.
- Decide per tool. Error tracking, analytics and replay each have different tolerance for gaps. A few missing page views rarely change a decision. A missing crash might.
This applies to every browser-side tool, ours included. A script that loads in the page and sends data out is a request a filter list can target. Nothing in this post should be read as a claim that JustAnalytics is immune. Run the same comparison against whatever you use.
If you'd like background on why the analytics half of this problem looks different without cookies, our cookieless tracking explainer covers how a script can measure traffic without storing anything on the visitor. And cookie consent statistics show how much consent choices shrink the data you do get, which is a separate loss from blocking and worth subtracting before you blame blockers for everything.
Why this matters beyond Sentry
Sentry's post has a quiet implication for the whole market. Error tracking, analytics, session replay and logging all share one architecture: a script in the browser phones home to a vendor domain. All of them are exposed to the same lists.
So a team running five separate browser tools has five separate exposures, five sets of domains to be listed, and five places where a tunnel would have to be built and maintained. That's a practical argument for consolidating your browser-side footprint, a point we'd make anyway since JustAnalytics bundles analytics, errors, replay and uptime into one script. But we'd rather you reach that conclusion from your own numbers than from our pitch.
One more thing, because it connects to the same privacy review. If a replay or error payload can include personal data, masking matters whether you tunnel it or not. The session replay PII masking guide is the checklist we'd start from.
What to do this week
- Run the comparison above for one release. An afternoon at most, and no new tooling.
- If you use Sentry's JavaScript SDK, read their post and check which version you're on. Their change applies as of 11.13.
- If you'd build your own tunnel, borrow Sentry's list: allow-list the destinations, forward visitor context and drop cookies, handle odd inputs without crashing, and keep the fast path cheap.
- If you don't tunnel, write down the estimated loss so nobody treats your error counts as complete.
FAQ
Why do ad blockers drop Sentry error events?
Sentry's own write-up says popular block lists include its ingest domain, its old Next.js tunnel path and some users' custom tunnel paths. Blockers match request URLs, so a browser report sent to a listed address never leaves the page.
What is a tunnel in error tracking?
A tunnel sends the browser SDK's reports to your own origin first. Your server then forwards them to the vendor. Blockers tend to let same-origin requests through, because blocking them would break the site.
Do I have to run a tunnel to use error tracking?
No. It is a trade. You get more complete data, and you take on a small server-side handler that has to be secured, kept current and monitored.
How do I know how many errors my ad-blocking users are hiding?
You mostly can't measure it from the same tool, because the reports that would count the loss get blocked too. Compare against a signal that doesn't travel the same route, such as server logs or support tickets.
Try JustAnalytics
All-in-one observability in one under-5KB script: cookieless analytics + error tracking + APM + session replay + uptime + structured logs. Replaces GA4 + Sentry + Datadog + Pingdom + LogRocket. Free tier (100K events/mo), Pro $49/month ($39 annual).
Author at JustAnalytics.