Netwarden
Back to Blog
Tutorials

Migrating from Sentry to Netwarden in 30 minutes

Keep the Sentry SDK and change the DSN. Forward to Sentry while you compare, point sentry-cli at Netwarden with a build token, import your history, and switch Sentry off when the numbers agree.

Netwarden TeamMay 8, 20263 min read
sentry migrationerror tracking migrationsentry-clisource maps
Share this article:

Migrating from Sentry to Netwarden in 30 minutes

Updated October 2026. An earlier version of this post described a separate Netwarden SDK. You do not need one: Netwarden accepts Sentry's own SDKs.

Netwarden speaks Sentry's ingest protocol. An application that reports to Sentry today reports to Netwarden by changing one value, the DSN, and it can keep reporting to Sentry at the same time while you compare the two. Most of the 30 minutes goes into your build pipeline, not your code.

Before you start

  • A Netwarden account. The free plan covers one Apps project, no card: sign up.
  • Your app, still on its Sentry SDK. Browser and Node, React Native, iOS, Android, Python, Go, Ruby, PHP, .NET and Java all work the same way.
  • Access to your CI secrets, if you upload source maps or debug files at deploy time.

1. Change the DSN

Create a project in Netwarden (Apps → New project) and copy its DSN for Sentry SDKs. It looks like https://nw_pk_…@ingest.netwarden.com/<id>. Replace the Sentry DSN with it:

import * as Sentry from "@sentry/node";

Sentry.init({
  dsn: process.env.SENTRY_DSN, // now the Netwarden DSN
  release: process.env.RELEASE,
  tracesSampleRate: 0.2,
});
import sentry_sdk

sentry_sdk.init(
    dsn=os.environ["SENTRY_DSN"],  # now the Netwarden DSN
    traces_sample_rate=0.2,
)

Nothing else in the app changes. beforeSend, ignoreErrors and sampling run inside the SDK, so they keep working. The project's Send a test event button checks the whole path.

2. Keep Sentry in the loop while you compare

In the project, open Settings → Sentry → Forward to Sentry, paste your Sentry DSN and turn forwarding on. Netwarden relays every envelope to Sentry, byte for byte, after storing its own copy, so Sentry's alerts and dashboards carry on. If Sentry rate-limits, forwarding pauses for the window Sentry asks for and resumes.

The project's Ingest page shows, day by day, what arrived, what was filtered, what was forwarded and, with a Sentry read token on the Sentry tab, what Sentry itself accepted. When the two columns agree for a week, switch forwarding off.

3. Point your build tooling at Netwarden

On the Sentry tab, create a build token (it starts with nw_tok_) and swap it in for SENTRY_AUTH_TOKEN:

SENTRY_URL=https://api.netwarden.com
SENTRY_ORG=<your account id, shown on the Sentry tab>
SENTRY_PROJECT=<project slug>
SENTRY_AUTH_TOKEN=nw_tok_…

sentry-cli releases new|finalize|deploys, sentry-cli sourcemaps upload, sentry-cli debug-files upload (dSYM, ELF, PDB, ProGuard), the webpack, Vite, Rollup and Metro plugins, and the Xcode and Gradle upload steps all keep working: they talk to the same /api/0/… endpoints, now served by Netwarden. sentry-cli releases set-commits --auto gives you suspect commits on the issue.

4. Recreate your alert rules

Settings → Alert Rules. Issue rules cover new issues, regressions, escalations, priority, crashes, levels, event counts, tags, titles and environments. Log rules fire on a pattern in your logs within a time window, which Sentry does not offer. Cron rules fire on a missed, late or failed check-in. Actions are email, a Slack incoming webhook (Discord and Mattermost accept it too), a JSON webhook and phone push. Each rule has a Send test button.

5. Bring your history

Sentry tab → Import history copies up to 90 days of error events and releases from Sentry, within Sentry's own retention. It can be cancelled and resumed, and imported errors never raise alerts.

What does not come across

Netwarden does not store session replays, profiles or Sentry custom metrics; they are counted as unsupported on the Ingest page. If a project depends on them, keep forwarding that project to Sentry.

Questions

Email support@netwarden.com. A migration report from a real codebase is one of the most useful things you can send us.

Get new posts by email

Subscribe and we email you when we publish something new.

No spam. Unsubscribe anytime.

Share this article

Help others discover simple monitoring

Related Articles

WordPress Monitoring, Honestly: What to Watch and What to Skip

Most WordPress monitoring guides promise the moon — Core Web Vitals, real-user analytics, synthetic browser tests from twenty cities. This one is the honest version: here's what's worth watching, what we actually monitor, and what we don't.

Netwarden Team-May 11

How Netwarden's Security Wedge Works

Most monitoring tools don't surface security signals. Most security tools don't surface monitoring signals. We built one tool that does both — because the people we sell to don't want to pay for two. Here's how the security wedge actually works under the hood.

Netwarden Team-May 11

Error tracking for Vercel apps: errors, dependencies, and analytics in one

If your Next.js app lives on Vercel, error tracking should be five lines plus a build env var. Here's the concrete setup — Edge runtime, instrumentation.ts, source-map upload — for a stack that doesn't bill per event.

Netwarden Team-May 8

Ready for Simple Monitoring?

Stop wrestling with complex monitoring tools. Get started with Netwarden today.

Get Started FreeView Pricing