Crash reporting
See the errors your users hit, grouped into issues with readable stacks, the calls that led up to them and the release, plus crash-free sessions and users for every release.
Install the SDK's crash reporter once and every crash is reported to your project: uncaught errors in browsers and React Native, uncaught exceptions and native crashes on iOS and Android, and anything you capture yourself. Reports are grouped into issues (the same bug is one issue across releases, line changes and ids), each with how often it happened, how many users it hit, the first and latest release, the last 50 reports in full and a 24-hour trend.
import { createClient } from '@sovaria/sdk'
const sov = createClient('https://<ref>.sovarias.in', '<anon key>')
sov.crashes.install({ release: '2.4.1', environment: 'production' }) // also starts a release-health session
try {
await checkout(cart)
} catch (e) {
sov.crashes.capture(e, { tags: { step: 'pay' }, extra: { items: cart.length } })
}
sov.crashes.addBreadcrumb({ category: 'ui', message: 'tapped Pay' })#What a report contains
| Field | Where it comes from |
|---|---|
| Error type, message and stack | The error. The top five frames (without line numbers, query strings, ids or addresses) group reports into issues; pass fingerprint to group your own way. |
| Kind | exception, native (a fatal signal or Mach exception on iOS, an NDK crash on Android, MetricKit), anr (Android: the watchdog or the system's record), hang (iOS), oom (low-memory kill). |
| Breadcrumbs | The last 50: every Sovaria call the SDK made (method, path, status; no bodies or tokens) and your own addBreadcrumb. |
| User | The signed-in app user, taken by the server from the request's token (an app can't claim another user). Anonymous otherwise. |
| Release, environment, platform, device | What you pass to install, plus OS and device details. iOS native reports carry the loaded binary images (name, UUID, load address, size); Android native frames carry each library's build id. Native crashes also record the signal, its code and the fault address, and the Mach exception on iOS. |
| Tags and extra | Whatever you pass to capture; fields named like passwords, tokens, keys or cookies are removed, and NUL characters are stripped before storage. |
#Readable stacks: source maps, R8 mappings, dSYMs, NDK symbols
Minified JavaScript, R8-obfuscated Android code and raw iOS addresses are turned back into your source when the report arrives, using the debug files uploaded for that release (use the same release string in the app and the upload). The stored issue shows the readable stack, with a switch to see the frames as the app sent them.
# Finds dSYMs, unstripped NDK libraries, R8 mappings and JS / Hermes bundle maps under the paths
sov crashes upload-symbols ios/build/MyApp.xcarchive android/app/build/outputs/mapping \
android/app/build/intermediates/merged_native_libs dist --release "2.4.1 (88)" --dry-run # then without --dry-run- Source maps map each frame to the original file, line, column and function name (index maps with sections too). Frames of a minified bundle without a map keep their line:column when grouping, so two different bugs in one bundle stay two issues.
- R8 / ProGuard mappings restore class, method, file and line, including methods R8 inlined (they come back as separate frames).
- dSYMs: only the function symbol table leaves your machine (the CLI reads it from the DWARF file); frames get the function and offset. Limits: no file:line yet, and Swift names stay mangled (
swift demanglereads them). Symbols are matched by image UUID, so no release is needed. - Android NDK libraries:
upload-symbolsreads the unstripped.sofiles (app/build/intermediates/merged_native_libs; in a Flutter projectbuild/app/intermediates/merged_native_libs), uploads only their function symbols keyed by GNU build id (the stripped copy of the same library is skipped), and native frames get the function and offset, also for libraries loaded straight from the APK. No release is needed. - React Native (Hermes): frames like
at onPress (address at index.android.bundle:1:9174)use the bundle's composed source map (index.android.bundle.map, uploaded as~/index.android.bundle). - Obfuscated Flutter builds (
--split-debug-info) aren't symbolicated on the server yet: reports are taggeddart_obfuscatedwith the build id; runflutter symbolizeon the stack. - The console's Debug files tab lists what is uploaded and the storage used; uploads are gzip chunks, so large mappings work.
upload-symbolsskips dSYM and NDK symbols already uploaded unchanged, so running it on every build only sends what changed.
#Release health
install starts a session per page load or app launch, and marks it crashed (uncaught or fatal) or errored (first handled error) once. Release health shows, per release: sessions, crash-free sessions, users, crash-free users and adoption, plus a daily crash-free line. Users are counted by the signed-in user or an anonymous id kept on the device (stored hashed). Turn it off with trackSessions: false.
#Working with issues
- In the console, Crashes shows a trend chart and the issues with a 24-hour sparkline; filter by status, release, app environment, platform or text. Open one for the stack, the calls before it, which releases and environments it hits, and its daily counts.
- Resolve an issue when the fix ships: if it happens again it reopens and is marked Regressed (with the release it came back in). Ignore hides one you won't fix.
- Alerts: Observability › Alerts can email the team or call a signed webhook on a new issue, a regression, or a spike of crash events (for the whole app, one issue, or
release:<version>). Example:sov alerts create --metric crash_new_issues --threshold 0 --window 15. - Sovariq can explain a crash ("why does checkout crash?"): its
explain_crashtool gathers the error, the first frames in your own code, the failing calls before it, the releases it hits, and what is missing to read the stack, then proposes a fix.
#Plans and limits
| Free | Pro | Ultra | Team | Enterprise | |
|---|---|---|---|---|---|
| App crash reports per month (per project) | 5,000 | 100,000 | 500,000 | 2,000,000 | 10,000,000 |
| Days app crash reports are kept | 7 days | 30 days | 90 days | 90 days | 365 days |
| App sessions counted for release health per month (per project) | 50,000 | 1,000,000 | 5,000,000 | 20,000,000 | 100,000,000 |
| MB of source maps, ProGuard mappings and dSYM symbols per project | 100 MB | 1.953125 GB | 9.765625 GB | 48.828125 GB | 195.3125 GB |
| MB per debug file (uncompressed) | 20 MB | 100 MB | 100 MB | 200 MB | 200 MB |
Past a monthly limit reports (or sessions) are dropped and counted; the Crashes page shows how many. The SDKs drop duplicates within a second and send at most 30 reports a minute, and the gateway allows a limited number of reports per minute from one address and one device (Control Center › Platform › Limits), so a crash loop can't use up the month.
#Coming from Firebase or Supabase?
| Platform | What this is called there |
|---|---|
| Firebase | Firebase Crashlytics |
| Sovaria | Crash reporting |
Moving an existing app? Migrate from Supabase or Firebase imports users (with their passwords), data, files and rules.