How it works

How BugBeacon works

One HTTP request goes in, one issue comes out. This page follows a report from your agent's POST to the issue page, step by step, with what is stored where.

An issue page in the BugBeacon dashboard with its event count, users and the stack trace

The path of one report

  1. The request. Your agent, app or script sends POST /api/v1/notify with a JSON body of up to 2 MB. The project key goes in the X-Api-Key header, or as apiKey in the body.
  2. The key check. A Cloud Function looks the key up and finds its project. An unknown key gets 401 (no key) or 400 (wrong key) and nothing is stored.
  3. The stack trace. If error.stacktrace is a string, it is split into frames. Three line formats are read: V8 (Node.js and browsers), JVM (Kotlin and Java) and Apple symbol lines. You can also send frames as an array of objects.
  4. The fingerprint. The report gets a key that decides which issue it belongs to. How grouping works explains the key in full.
  5. The issue. In one Firestore transaction the issue is created, or its event count, user count, last-seen time and daily count go up. A resolved issue goes back to unresolved.
  6. The event. The full report is saved under the issue: frames, raw trace, breadcrumbs, device, user and metadata.
  7. The answer. BugBeacon replies 202 with issueId, eventId and isNewIssue.
HTTP/1.1 202 Accepted
{
  "success": true,
  "issueId": "9f3c2a71e0b45d18c6a2b7f4",
  "eventId": "Qm4v0nRk2sWb8TzY1cLp",
  "isNewIssue": false,
  "message": "Crash report accepted for processing"
}

What is stored

WhereWhat
projects/{id}The project, its key, its owner and members, and totals per platform.
…/issues/{fingerprint}One issue: error class and message, status, first and last seen, event and user counts, daily counts and a summary of the latest event.
…/issues/{id}/events/{id}Every report in full, as your agent sent it, with the parsed frames.

User counts come from user.id. The last 50 distinct ids are kept on the issue. If you send no user, the request's IP address is stored as user.ip.

Who can write and who can read

Reports never reach the database from the client that sent them. Firestore rules deny every write to events; only the ingest function, which runs with admin rights after the key check, stores reports. Signed-in owners and members can read their project and change an issue's status from the dashboard.

The project key is a write-only key for reports. It cannot read issues. Still, keep it out of public repositories: anyone with it can add reports to your project.

What it does not do yet

  • There is no read API. Agents get issueId and isNewIssue back, and people read issues in the dashboard.
  • There is no source map or dSYM upload: frames are shown as they arrive.
  • Alerts by webhook can be set up in a project's settings screen, but sending them is not built yet.