Every SDK does the same four things, and none of them ever throws into your app:
- Build an error envelope from a native exception.
- Scrub sensitive keys before anything leaves the process.
- Send it to
{endpoint}/v1/ingestwith your key in theX-Ingest-Keyheader. - Never send a project. Bliptrace works out the project from the key, so one app cannot pretend to be another.
Pick your SDK
| SDK | Install | Hooks into |
|---|---|---|
| Laravel | Packagist: bliptrace/laravel |
The exception handler; sends after the response |
| PHP | Packagist: bliptrace/php |
Manual capture(); the base for every PHP adapter |
| Symfony | From GitHub | kernel.exception, sends on kernel.terminate |
| CakePHP | From GitHub | Error.beforeRender |
| CodeIgniter 4 | From GitHub | A global exception handler |
| Yii2 | From GitHub | An application component and error-handler hook |
| Drupal | From GitHub | KernelEvents::EXCEPTION |
| WordPress | From GitHub | Uncaught exceptions and fatal errors |
| JavaScript / TypeScript | From GitHub (build) | Manual capture(); Node 18+ and browsers |
| Express | From GitHub (build) | Error-handling middleware |
| Next.js | From GitHub (build) | instrumentation.ts: register and onRequestError |
| Python | From GitHub | Manual capture(); no dependencies |
| Django | From GitHub | Middleware |
| Flask | From GitHub | The got_request_exception signal |
| FastAPI / Starlette | From GitHub | ASGI middleware |
| Ruby | From GitHub | Manual capture(); standard library only |
| Rails | From GitHub | Rack middleware inserted by a Railtie |
| Go | go get (module on GitHub) |
Manual Capture(); standard library only |
| Java | From GitHub (build) | Manual capture(); Java 17+ |
| .NET | From GitHub (build) | Manual Capture() |
| Rust | From GitHub | Manual capture(); plain HTTP only today |
| Any language | Nothing to install | A plain HTTP POST |
“From GitHub” means the package is not on a public registry yet. The source is public under github.com/bliptrace and each SDK page shows how to install it from there. Only
bliptrace/laravelandbliptrace/phpare on Packagist today (version 1.2).
Settings every SDK shares
Names vary a little by language (max_frames, maxFrames, MaxFrames), but the settings are the same.
| Setting | Environment variable | Default | Notes |
|---|---|---|---|
| Key | BLIPTRACE_KEY |
none | Without a key nothing is sent |
| Endpoint | BLIPTRACE_ENDPOINT |
legacy host | Set to https://ingest.bliptrace.com |
| Environment | BLIPTRACE_ENVIRONMENT |
production |
Laravel uses APP_ENV |
| Release | BLIPTRACE_RELEASE |
none | Version or commit SHA; drives regressions |
| Enabled | BLIPTRACE_ENABLED |
true |
Master switch |
| Timeout | BLIPTRACE_TIMEOUT |
3 seconds | Kept short so a slow network never holds your app |
| Max frames | BLIPTRACE_MAX_FRAMES |
30 | Stack frames sent |
| Max message | BLIPTRACE_MAX_MESSAGE |
2000 | Characters of the exception message |
| Base path | app root | Frames under it (and not in vendor or dependency folders) count as your code | |
| Ignored exceptions | varies | Exception classes never reported | |
| Scrub keys | varies | Context keys replaced before sending |
Where the variables are read automatically and where you pass them in code is noted on each SDK page. PHP adapters read them through G8Scope\Php\Env::get('KEY'), which looks up BLIPTRACE_KEY first.
Renamed variables. SDKs from before version 1.2 used
G8SCOPE_*names. They are still read when theBLIPTRACE_*name is unset, and will be removed in 2.0. Rename them when you next touch the config.
Base path matters
Bliptrace groups errors by the top frames of your code, not library code. The SDK marks each frame in_app when its file sits under the base path and outside folders such as vendor/, node_modules/, site-packages/ or /gems/. If the base path is wrong, every frame looks like library code and grouping gets worse. Read Grouping for why.