Every SDK, in every language, sends the same JSON document: the error envelope. It is defined by a versioned JSON Schema in the public bliptrace-contracts repository, and the ingest API rejects anything that does not match it.
A full example
This is the reference example from the contract, with the app and tenant names replaced by acme.
{
"schema_version": "1.1",
"event_id": "9f1c0a7e-1f2b-4d3e-9a8b-2c4d5e6f7a8b",
"occurred_at": "2026-06-25T09:14:32.521Z",
"runtime": { "name": "php", "version": "8.3.7" },
"sdk": { "name": "g8scope-laravel", "version": "1.0.0" },
"environment": "production",
"release": "[email protected]",
"level": "error",
"exception": {
"type": "RuntimeException",
"message": "Directory write failed",
"frames": [
{
"file": "app/Actions/ResetPassword.php",
"line": 42,
"function": "ResetPassword::__invoke",
"in_app": true,
"context": { "pre": ["..."], "line": "...", "post": ["..."] }
}
],
"previous": [
{ "type": "PDOException", "message": "SQLSTATE[HY000]: connection refused" }
]
},
"fingerprint_hint": null,
"context": {
"request": {
"method": "POST",
"url": "/password/reset",
"headers": {},
"status_code": 500,
"route": "password.reset",
"duration_ms": 128.4
},
"query": {
"connection": "pgsql",
"sql": "update users set password = ? where id = ?",
"bindings": ["***", "u_123"],
"duration_ms": 12.3
},
"user": { "id": "u_123" },
"custom": {}
},
"breadcrumbs": [
{
"timestamp": "2026-06-25T09:14:31.900Z",
"type": "http",
"category": "request",
"level": "info",
"message": "POST /password/reset",
"data": { "status": 500 }
}
],
"tags": { "tenant": "acme" },
"trace": { "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736", "span_id": "00f067aa0ba902b7" }
}
Required fields
| Field | What it holds |
|---|---|
schema_version |
Envelope version, major.minor. Breaking changes bump the major |
event_id |
A UUID the client generates for each event. It is the idempotency key: a retry with the same id is stored once |
occurred_at |
When the error happened, RFC 3339 UTC with milliseconds |
runtime |
name (php, javascript, python, go, …) and version. The name picks how stack paths are normalised for grouping |
level |
debug, info, warning, error or fatal |
exception |
type, message and frames |
The exception
| Field | What it holds |
|---|---|
type |
The exception class, for example RuntimeException or TypeError. Shown as the issue title |
message |
The message, truncated by the SDK (2000 characters by default) and scrubbed on arrival |
frames[] |
Stack frames, most recent call first: file, line, function, in_app and optional source context (lines before, the line, lines after) |
frames[].in_app |
true when the file is your code: under the app’s base path and not in a dependency folder. Grouping is built from these frames |
previous[] |
The chain of causes (type, message), for example the PDOException behind a RuntimeException |
Context
| Field | What it holds |
|---|---|
context.request |
method, url, headers, query, body, status_code, route, duration_ms. SDKs remove Authorization and Cookie headers before sending |
context.query |
The database query running when it failed: connection, sql, bindings, duration_ms. Send bindings masked ("***") for sensitive values; pattern scrubbing on arrival catches emails, card numbers and the like |
context.user |
The signed-in user’s id only. Do not send names or email addresses |
context.custom |
Anything else you want to see on the issue |
Everything else
| Field | What it holds |
|---|---|
sdk |
SDK name and version |
environment |
production, staging, … Filterable in the inbox |
release |
Version or commit SHA. Ties issues and regressions to deploys |
fingerprint_hint |
Set it to force a grouping key of your own. null or empty means automatic grouping |
breadcrumbs[] |
What happened just before the error: timestamp, type (required) plus category, level, message, data |
tags |
Short key/value labels such as tenant or region |
trace |
trace_id and span_id, to link the error to a distributed trace |
What the SDKs fill in today
The schema is the full vocabulary; the SDKs fill part of it automatically and leave the rest to you.
| Field | Filled automatically | How to add it yourself |
|---|---|---|
Exception, frames, in_app, runtime, sdk, level |
Every SDK | |
previous (cause chain) |
PHP SDK and its adapters | |
Frame source context |
PHP SDK (5 lines either side) | |
context.request |
Framework adapters (method, URL, headers; Laravel adds route and query string) | Pass request in the capture context |
context.user |
Laravel, Express, Django, Yii2 (user id) | Pass user: {id} in the capture context |
environment, release |
From SDK settings | |
context.query, context.custom |
Pass them in the capture context (PHP SDK passes the context through as given) | |
breadcrumbs, tags, trace, fingerprint_hint |
Send them in the envelope over HTTP or through a custom SDK transport |
The dashboard shows every field it receives: previous exceptions, the database query panel, breadcrumbs, tags and trace ids all appear on the issue page when present.
What is never in the envelope
There is no project field. Bliptrace looks up the project from the X-Ingest-Key header on the server. A client cannot claim to be another project, and a leaked payload cannot be replayed into someone else’s account.