Guide
How BugBeacon groups errors into issues
An agent that fails 400 times on the same tool should give you one issue with 400 events, not 400 issues. The fingerprint decides that.
The default fingerprint
For each report BugBeacon builds one string from three parts and hashes it with SHA-256. The first 24 hex characters are the fingerprint, and the fingerprint is the issue's id.
{error.name} ::: {masked error.message} ::: {file}:{method}:{line} of the top frame
1. The error name
ToolTimeoutError and RateLimitError never share an issue.
2. The message, masked
Parts of a message that change from run to run are replaced before hashing:
| In the message | Becomes |
|---|---|
Hex addresses such as 0x7ffe3a10 | 0x<addr> |
| UUIDs | <uuid> |
| Numbers of five digits or more | <id> |
So run 81233 failed and run 90410 failed group together. Short numbers stay: took 31 s and took 45 s are two issues. Put changing values in metadata instead of the message.
3. The top frame from your code
BugBeacon takes the first frame marked as your own code. A frame is not your code when its file is under node_modules, webpack or internal/, when its class starts with android., java. or kotlinx., or when its binary is UIKit, Foundation, libsystem or libobjc. Its file, function and line number go into the key.
The line number is part of the key. If a deploy moves the failing line, the next report opens a new issue. Send your own fingerprint when that matters.
Send your own fingerprint
Any non-empty fingerprint string replaces all three parts. BugBeacon hashes it the same way, so equal strings always land on the same issue.
{
"error": { "name": "ToolTimeoutError", "message": "web_search took over 30 s" },
"fingerprint": "tool:web_search:timeout"
}
Keys that work well for agents:
tool:{name}:{error kind}: one issue per tool and failure kind.model:{provider}:{status}: one issue per model API error, such as every 429.step:{plan step}:{error kind}: for agents with fixed plans.schema:{tool}: every time a model's tool arguments fail validation.
Keep run ids, timestamps and user input out of the key, or every report becomes its own issue.
When an issue comes back
Mark an issue resolved after a fix. If a report with the same fingerprint arrives later, the issue goes back to unresolved and records regressedAt. The report's answer still says isNewIssue: false, since the issue existed.
Stack trace formats
A string trace is split into lines, and three formats become frames with file, function and line:
at callTool (src/tools.ts:88:11) V8: Node.js and browsers
at app.agent.Run.step(Run.kt:42) JVM: Kotlin and Java
1 App 0x0000000100001234 -[Run step] + 42 Apple symbols
Every other line is kept as a frame whose function is the line's text. That includes the first line of a JavaScript error.stack (TypeError: …), which then counts as the top frame. To group on real code frames, send the trace without its first line, or send frames as an array:
"stacktrace": [
{ "file": "src/tools.ts", "method": "callTool", "lineNumber": 88, "columnNumber": 11, "inProject": true }
]