# Game error tracking next to your players and builds

> Send game errors and crashes as events. See crash-free sessions and players by build, then follow each error to the player and the session before it.

Canonical URL: https://manalens.dev/features/error-tracking

Manalens records errors and crashes as events, with the same player, session, build, and platform as your other game events. See crash-free sessions and players by build, find the errors that happen most, and open the session events before each error.

[How to install](https://docs.manalens.dev/install)

## Errors and crashes are game events

Two events carry the data. An error event has a severity (debug, info, warning, error, or critical), a message, an error type, a stack, and the last 20 event names before it. An app_crash event comes at the next launch, when the last run did not exit normally while the game had focus.

Because they are events, you can use errors in funnels, retention, filters, and charts. For example: did the error rate go up after build 572?

## Unity, Godot, and Unreal capture engine errors

The SDK that sends your game events also captures engine errors. You do not add a second SDK. Call the track error method for your own errors, such as a failed save.

- Unity: unhandled exceptions, Debug.LogError, and failed asserts, from any thread. Call TrackError() for your own errors.
- Godot 4.5 and later: engine and script errors, for example push_error() or a failed load(). Call track_error() on every Godot version.
- Unreal: Error lines of the engine log (UE_LOG), with the log category as the error type. Call Track Error in C++ or Blueprint.
- Browser games: call trackError() in the web SDK.

Send your own error from Godot

```
Manalens.track_error("Save failed for slot %d" % slot, {
    "error_type": "SaveFailed",
    "severity": "critical",
    "handled": false,
})
```

## Know where each error came from

Each error has a source: manual for your own calls, or auto for a capture by the SDK. An automatic capture also has log_type, the log level of the engine. Warnings are off by default.

Limits stop one bug from filling your data: one fingerprint at most once a second, at most 20 errors in 10 seconds, and at most 50 engine errors in one session. The next session_end event has the number of dropped errors.

## See every error group on one page

Open Errors in the sidebar. For the date range, it shows crash-free sessions, crash-free players, errored sessions, and the number of errors and crashes, with a chart of errors and crashes by day.

Each error group is one row, with the latest message, events, players, sessions, first and last seen, and the latest build. Errors group by error type, file, and function, or by the message with numbers and quoted text removed. Filter by errors or crashes, by build, or by text.

## Compare builds

The By build table shows sessions, crash-free rates, errored sessions, and errors per session for each build. Click a build to see only its errors.

A crash counts in the session and build that crashed, not in the next launch that reported it. So a bad build shows its own crashes, even when players reopen the game on a fixed build.

## From an error to the player and the session

Click an error group to open its panel: events, players, sessions, first and last seen, and the builds it hit. Each event shows its message, stack, and breadcrumbs.

From an event, open the player profile. Its Errors tab lists every error and crash of that player. Or open the session timeline: it shows the events before the error, the time to the error, and the events after it. For a crash, it shows the last events of the session that crashed.

- [Profiles](https://manalens.dev/features/profiles)
- [Sessions](https://manalens.dev/features/sessions)

## Alerts, MCP, and the Game health board

You do not have to watch the page. Alerts, the MCP server, and a dashboard template read the same data.

- Alert on crashes, on the Errors page, sends an alert for each app_crash event.
- Alert me, in the panel of an error group, sends an alert for each new event of that group. Before you save it, you can change it to a count alert, for example at least 10 errors in 1 hour. Alerts go to Slack or a signed webhook.
- The get_errors tool of the MCP server reads error groups, crash-free rates by build or day, the events of a group or a player, and the session events before an error.
- The Game health board template has crash-free sessions, crash-free players, errored sessions, errors per session by build, and top errors, as SQL charts that you can edit.

- [MCP server](https://manalens.dev/features/mcp-server)
- [Dashboards](https://manalens.dev/features/dashboards)

## How it compares with crash reporters

The event names follow the tools you may know: one error event with five severities, as in GameAnalytics, and crashes apart from handled errors, as in Firebase Crashlytics and Unity. Manalens does not store native crash dumps or symbols. To fix a native crash from its stack, keep Sentry or Backtrace. Use Manalens to see which players and builds the errors hit. Many games use both.

- [Manalens vs Sentry](https://manalens.dev/compare/sentry)
- [Manalens vs GameAnalytics](https://manalens.dev/compare/gameanalytics)

*Error and crash features, from each product's documentation*

| Product | Errors | Crash-free rates | Native crash dumps |
| --- | --- | --- | --- |
| Manalens | One error event with five severities. Engine errors from Unity, Godot, and Unreal. | Crash-free sessions and players, counted with app_crash | No. Keep Sentry or Backtrace for native stacks. |
| Firebase Crashlytics | Fatal and non-fatal issues for Apple, Android, Web, Flutter, and Unity. No desktop platforms listed. | Crash-free users and sessions for mobile apps | Crashlytics. No desktop platforms listed. |
| Unity Cloud Diagnostics | Exceptions and crashes with stack traces | Crash-free sessions | Native crash reports with uploaded debug symbols |
| GameAnalytics | One error event with five severities | Error event counts by severity | Crashes sent as error events (C++ SDK) |
| Sentry | Unity C# exceptions and Godot script and shader errors | Crash-free sessions and users by release | Minidumps on Windows and Linux, with a symbol server |

## Frequently asked questions

**Does Manalens store native crash dumps?**

No. Manalens does not store native crash dumps or symbols, so it cannot symbolicate a native stack. Keep Sentry or Backtrace for native crashes. Manalens still counts each crash with the app_crash event at the next launch, so your crash-free sessions and crash-free players stay correct next to your other game data.

**How does Manalens detect a crash?**

At the next launch, the SDK checks if the last run exited normally while the game had focus. If it did not, the SDK sends app_crash with the previous session, build, and app version. A normal quit, or a close by the operating system in the background, does not count as a crash.

**What counts in the crash-free rate?**

Crash-free sessions is 1 minus the share of sessions with app_crash or a critical error with handled set to false. Crash-free players uses distinct players in the same way. A crash counts in the session and build that crashed, so the Errors page and the Game health board show the same rates.

**Can I keep private data out of errors?**

Yes. In the Godot, Unity, and Unreal SDKs, a before send callback gets every event before it leaves the game. Return the event as it is, return it changed, for example without the stack, or return null to drop it. Withdrawn consent and a reset also clear the breadcrumbs.

**Do I need a second SDK for errors?**

No. The Unity, Godot, and Unreal SDKs that send your game events also capture engine errors and send app_crash. You can turn the automatic capture off, and warnings are off by default. Other engines can send error and app_crash events to the events endpoint with the same property names.

## Explore next

- [Error tracking documentation](https://docs.manalens.dev/features/error-tracking)
- [Manalens vs Sentry](https://manalens.dev/compare/sentry)
- [Crash-free rate calculator](https://manalens.dev/tools/crash-free-rate-calculator)
- [Where to find game crash logs, by engine](https://manalens.dev/blog/game-crash-logs-by-engine)
- [Dashboards](https://manalens.dev/features/dashboards)
