What Is the Best Self Hosted Alternative to Sentry?

2026-11-29
Brian

Subscribe
Get New Posts by Email
New RepoSquare posts in your inbox: comparisons, setup guides and explainers on open-source tools and AI coding agents. No spam, and you can unsubscribe anytime.

Sentry’s own self hosted installer checks for 14 GB of RAM and 4 CPU cores before it will start. On a test box with 2 cores and 8 GB, Rustrak idled at about 21 MB and accepted the same Sentry SDK.

For most small teams, Rustrak is the self hosted Sentry alternative to start with: one container, and it takes errors, traces and logs. GlitchTip groups errors closest to how Sentry does but needs Postgres. Bugsink is simple and stable, but it only tracks errors and drops events past 1,000 per project every 5 minutes by default.

Your app throws an error at 2 a.m. and nobody sees it until a user complains. That is the problem an error tracker solves. Sentry is the tool most teams reach for, and you can host it yourself, but the install is heavy.

So I ran the three lighter options side by side, sent them the same errors from the same Python app, and watched what each one did with them.

Self hosted Sentry runs 53 services while Rustrak and Bugsink run one container and GlitchTip two

One idea runs through the whole comparison: an error tracker’s real job is deciding which errors are the same error. Memory and setup matter once. Grouping is what you live with every day.

What an error tracker does with a crash

Mind map of self hosted Sentry alternatives: Rustrak idles at 21 MB, GlitchTip needs Postgres, Bugsink drops events past 1,000, grouping differs, fingerprint fixes merged issues

It catches every crash in your app, sends it to one place, and groups repeats so you see one problem instead of a thousand alerts.

Start with the simplest piece. Your app has a small library inside it called an SDK (a code package that talks to an outside service). When something crashes, the SDK packs up the error message, the stack trace (the list of function calls that led to the crash) and some context, then sends it to the tracker.

The SDK finds the tracker using a DSN (a web address with a secret key in it). Every Sentry SDK in every language uses the same format for that address and the same format for the data it sends.

That shared format is why these alternatives exist. You keep your existing Sentry SDK, change one string, and your errors land on your own server instead.

import sentry_sdk
sentry_sdk.init(dsn="https://<key>@your-server/1")
How an error tracker works: the app SDK sends the error to the tracker, which groups repeats into issues

Then comes the part that decides whether the tool is pleasant or painful. The tracker groups incoming errors into issues (one row in the list that stands for “this same bug”). A good grouping turns 5,000 crashes into one line you can fix. A bad one either buries two bugs under one row, or splits one bug into fifty rows.

Why self hosted Sentry itself is heavy

You can, but it is heavy: the official setup runs dozens of containers and checks for 14 GB of RAM before it installs.

The official self hosted Sentry setup is one big Docker Compose file (a list of containers that start together). The compose file lists 53 services. Its installer stops if Docker has less than 14,000 MB of RAM or fewer than 4 CPU cores. An errors-only mode lowers that to 7,000 MB and 2 cores.

A small VPS (a cheap rented server) with 2 GB of RAM cannot run it at all. If you are not sure what your box can take, benchmark the VPS first.

There is also the license. Self hosted Sentry uses the Functional Source License, which is source-available (you can read and run the code) but not open source in the strict sense. That matters to some teams and not to others.

That is why lighter trackers that speak Sentry’s language are worth a look.

The three trackers I tested

Three tools that accept the standard Sentry SDK: Rustrak, Bugsink and GlitchTip.

  • Rustrak: a single Rust program with SQLite (a database stored in one file) built in. One container.
  • Bugsink: a single Python app, also one container, built only for errors.
  • GlitchTip: a Python app that needs a Postgres database next to it. Valkey (a fast in-memory store) is optional.

All three ran on the same small test machine: 2 CPU cores and 8 GB of RAM, which is already too small for full self hosted Sentry. I pointed the official Python Sentry SDK at each one, with no other changes.

Test setup: one Python app sending the same errors to Rustrak, Bugsink and GlitchTip

Setup took a few minutes for each. The projects are Rustrak, Bugsink and GlitchTip. Rustrak and Bugsink need one docker run command with a secret key and an admin login. GlitchTip needs a Postgres container first, then the app, so it is two moving parts instead of one.

Memory: idle, and under a 2,000 error burst

Rustrak idles at about 21 MB. Bugsink sits near 190 to 220 MB. GlitchTip uses about 175 MB plus around 60 MB for Postgres.

Then I pushed each one harder. I sent 2,000 errors in one burst and watched peak memory and how long the SDK took to hand everything over.

  • Rustrak: peaked at 33 MB. The SDK finished sending in 6.9 seconds.
  • GlitchTip: peaked at 181 MB, with Postgres at 76 MB. 11.0 seconds.
  • Bugsink: peaked at 241 MB. 17.2 seconds.
Idle and peak memory for Rustrak, GlitchTip and Bugsink during a 2,000 error burst

What does that mean for you? Any of the three fits on a cheap server. Rustrak leaves the most room for your actual app on the same box, which matters if you are squeezing everything onto one small VPS.

One catch on these numbers: this was one machine and one burst. Treat them as “roughly how big”, not a benchmark to quote.

Do they keep every error you send?

Rustrak and GlitchTip stored all 2,000. Bugsink stopped at exactly 1,000 and silently dropped the rest.

That gap surprised me, so I looked for the cause. Bugsink has a default quota (a cap on how much it accepts) of 1,000 events per project every 5 minutes, 5,000 per hour. Past that, events are thrown away and not even counted. Every request in my burst still got a normal “200 OK” reply, so the app had no idea.

Rustrak and GlitchTip kept all 2,000 errors, Bugsink stopped at 1,000

Is that bad? Not always. The cap protects a small server from being flooded during an outage, and an issue with 1,000 copies of the same crash already tells you plenty. But if you use event counts to judge how bad an incident was, the number will be wrong.

You can raise it with an environment variable when you start the container:

-e MAX_EVENTS_PER_PROJECT_PER_5_MINUTES=10000

Grouping is where the three really differ

This is where they really differ. Rustrak and Bugsink group by error type and message. GlitchTip also uses where the error happened.

I sent three kinds of repeats that every real app produces, and checked how many issues each tool created.

Test 1: the same error from two different functions. My app raised KeyError: 'user_id' once in load_profile and once in parse_order. These are two different bugs in two places.

  • Rustrak: merged them into one issue.
  • Bugsink: merged them into one issue.
  • GlitchTip: kept two issues, one per function.

Test 2: the same line, different order numbers. Order 123 not found and Order 456 not found came from the same line of code. That is one bug.

  • Rustrak: one issue (it swaps numbers for a placeholder before grouping).
  • Bugsink: one issue.
  • GlitchTip: two issues, one per order number.

Test 3: a deploy that shifts line numbers. I added five lines at the top of the file and raised the same error again.

  • All three kept it in the original issue. Nobody split it.
How many issues Rustrak, Bugsink and GlitchTip created for three grouping tests

Here is what Test 1 looks like in Rustrak. Three events sit under one KeyError issue labelled load_profile, even though one of them came from parse_order.

Rustrak issue list showing one KeyError issue with 3 events from two functions

So which grouping is right? When a stack trace exists, Sentry groups almost entirely by it, so Sentry would keep Test 1 apart and Test 2 together. None of the three matches that exactly. Rustrak and Bugsink can hide a second bug under the first. GlitchTip can spray one bug across many rows when messages carry IDs.

Fix merged issues with a fingerprint

Send a fingerprint (a custom grouping key) from the SDK that adds the function where the error was raised.

Every Sentry SDK lets you change an event before it leaves your app. You add a fingerprint that says “group by the normal rules, plus this function name”. All three trackers honour it.

import sentry_sdk

def add_function_to_fingerprint(event, hint):
    exc = hint.get("exc_info")
    if exc:
        tb = exc[2]
        while tb.tb_next:          # walk to the frame that raised
            tb = tb.tb_next
        event["fingerprint"] = ["{{ default }}", tb.tb_frame.f_code.co_name]
    return event

sentry_sdk.init(dsn="https://<key>@your-server/1",
                before_send=add_function_to_fingerprint)

I ran Test 1 again with this hook. Rustrak and Bugsink both created two separate issues, one for load_profile and one for parse_order.

A fingerprint hook turns one merged issue into two separate issues

One warning: changing the fingerprint changes the grouping key, so errors you already have will not join the new issues. Add the hook on day one, or accept a one-time reshuffle.

Traces, logs, licenses and defaults

Rustrak and GlitchTip also take performance traces and logs. Bugsink only does errors. The licenses differ a lot.

  • Performance traces (timing data for each request): Rustrak and GlitchTip stored my test request. Bugsink only reads error events and skips the rest.
  • Logs (plain app messages like “user signed up”): Rustrak and GlitchTip stored them. Bugsink skipped them.
  • License: Rustrak is AGPL-3.0 (open source, but changes you offer as a service must be shared). GlitchTip is MIT (do almost anything). Bugsink uses the PolyForm Shield license, which is source-available: free to self host, but you cannot use it to build a competing product.
  • Phoning home: Rustrak sends anonymous usage stats by default (turn off with RUSTRAK_TELEMETRY=off). Bugsink does too (turn off with PHONEHOME=false).
  • Alerts: all three can post to Slack. GlitchTip can also push to ntfy directly (if you have not picked a push service yet, see ntfy or Gotify).
Traces, logs, license and telemetry defaults compared for Rustrak, GlitchTip and Bugsink

The license line is the one people skip and regret later. If you plan to offer error tracking to clients, read it before you pick.

Self hosted Sentry alternative: Rustrak, GlitchTip or Bugsink?

Small server and you want errors plus traces: Rustrak. Closest to Sentry’s grouping and the most open license: GlitchTip. Errors only, nothing else: Bugsink.

There is a fair case for each one. GlitchTip’s grouping kept my two different KeyError bugs apart without any extra code. If you already run Postgres, its extra container costs you little.

Still, for a typical side project or small team on one small VPS, I would start with Rustrak. It used a tenth of the memory, kept all 2,000 events, and took traces and logs too. Add the fingerprint hook above so it never hides a second bug behind the first.

Which self hosted Sentry alternative to pick: Rustrak, GlitchTip or Bugsink

Whichever you pick, test it the way you will use it. Send one error from two places in your own code and see how many rows show up. That single check tells you more than any feature list, because the real job is deciding which errors are the same error. Once it is running, check whether the VPS itself is secure.

Get New Posts by Email
New RepoSquare posts in your inbox: comparisons, setup guides and explainers on open-source tools and AI coding agents. No spam, and you can unsubscribe anytime.

Leave a comment