Packages & installation
Use this page as the single entry point for every client library, script, and mirror repo that ships from the Bilge monorepo. Each row links to the canonical README (full API and configuration) and to the relevant HTTP docs where applicable.
Supported SDKs
| Stack | How to send | What you get | Support |
|---|---|---|---|
| Laravel / PHP | bilgesh/tracing (install) |
Errors, traces, logs, queues, cron, RUM, profiling, metrics | First-class |
| JavaScript (browser, Node) | Official Sentry SDK (@sentry/browser, @sentry/node) with your Bilge DSN (how) |
Errors and release health | First-class |
| Python | Official sentry-sdk with your Bilge DSN |
Errors and release health | First-class |
| Rails | bilge_framework.rb module (Framework integrations) |
Errors, traces, jobs | Beta |
| WordPress | Bilge plugin | Errors, traces | Beta |
| Other Sentry SDKs (Go, Ruby, .NET, Swift/iOS, Kotlin/Android, …) | Official Sentry SDK with your Bilge DSN | Errors and release health | Beta |
| Anything else | Plain HTTP: Ingest API | Every signal type | Documented API |
First-class stacks are covered by our end-to-end ingest checks on every release, and problems with them are fixed first. Beta stacks use the same ingest endpoints and should work, but get less testing; if something breaks, tell us at support and we'll fix it. With a Sentry SDK, Bilge stores errors and session (release-health) data; transactions, replays and attachments are accepted and ignored for now, so use bilgesh/tracing or the Ingest API for tracing.
Choose your integration (quick path)
- Laravel or PHP (errors, traces, logs, metrics, RUM, profiling) — Install
bilgesh/tracingvia Composer (see Installing bilgesh/tracing below). Deep reference: Ingest API, Protocol overview, Monitoring modes. - Rails — Copy
packages/bilge-rails/lib/bilge_framework.rbinto your app. Followpackages/bilge-rails/README.mdin the monorepo (or your split mirror). Not a gem; same ingest contract as step 1. Summary: Framework integrations. - WordPress — Copy
packages/bilge-wordpress/intowp-content/plugins/bilge/(seepackages/bilge-wordpress/README.md). Enable under Plugins, configure Settings → Bilge with base URL + project API key. Split mirror:SPLIT_BILGE_WORDPRESS_REPO. - Terminal automation (projects, grouped errors, triage) — Install
bilgesh/cli(composer require --dev bilgesh/clior global). Uses Sanctum API tokens (Profile → API tokens) against/api/v1/*. Seepackages/bilge-cli/README.mdandbilge list. - AI agents (Cursor, Claude Desktop, MCP clients) — Same personal access token as step 4. Connect to
POST /mcp/bilge(JSON-RPC): 17 tools, docs resources, triage prompts. Full setup: MCP server. - Browser: uncaught JS errors — Host
public/js/bilge.jsfrom your Bilge app (or the split mirror forpublic/js) and add the script tag withdata-ingest-urlanddata-api-key. Details: rootREADME.mdsection JavaScript (frontend errors). - Browser: Web Vitals / SPA (RUM) — Use
packages/bilge-tracing/resources/rum/bilge-rum.js(same project API key; performance ingest must be enabled). Seepackages/bilge-tracing/README.md§ Real User Monitoring. - REST without SDK — API token (Profile → API tokens) or project API key per REST API (v1); OpenAPI: v1.yaml.
- Raw HTTPS only — Any client that can POST JSON: Ingest API.
- High-volume edge ingest (operators) — Deploy
packages/bilge-ingest-edge/on Cloudflare Workers. Full runbook: Edge ingest (Cloudflare).
Installing bilgesh/tracing
Laravel
From your Laravel app root (directory containing artisan):
composer require bilgesh/tracing
php artisan bilge:install
composer require updates composer.json / composer.lock and installs the package under vendor/. bilge:install prompts for a DSN (https://PROJECT_API_KEY@your-bilge-host.example.com) and appends BILGE_DSN plus BILGE_LARAVEL=true to .env (unless you use --no-quick). Alternatively set BILGE_API_KEY and BILGE_URL if everyone uses the same Bilge host.
Then: clear or rebuild config cache if you use config:cache; optionally php artisan vendor:publish --tag=bilge-tracing-config; register bilgeTracing.continueTrace (and performance middleware when needed) on your routes. Laravel auto-discovers the package service provider.
Step-by-step narrative: Framework integrations — Laravel.
Other PHP projects (not Laravel)
From your project root (where your composer.json lives):
composer require bilgesh/tracing
There is no Laravel provider: configure Tracer::instance()->configure([...]) with api_key and base_uri during bootstrap, and wire PSR-15 middleware, Guzzle, Monolog, or manual Tracing:: calls as needed. See packages/bilge-tracing/README.md sections Install → Other PHP projects, Propagation, and Guzzle 7.
Monorepo layout & mirror splits
These paths exist in the main Bilge repository. Maintainers can git subtree split each prefix to an empty GitHub mirror.
| Deliverable | Monorepo path | Consumer install | Split variable (optional) |
|---|---|---|---|
bilgesh/tracing (Composer) |
packages/bilge-tracing |
composer require bilgesh/tracing |
SPLIT_BILGE_TRACING_REPO |
bilgesh/cli (Composer) |
packages/bilge-cli |
composer require --dev bilgesh/cli |
SPLIT_BILGE_CLI_REPO |
| Rails module (copy-paste) | packages/bilge-rails |
Copy lib/bilge_framework.rb |
SPLIT_BILGE_RAILS_REPO |
| WordPress plugin | packages/bilge-wordpress |
Copy folder to wp-content/plugins/bilge/ |
SPLIT_BILGE_WORDPRESS_REPO |
| RUM bundle | packages/bilge-tracing/resources/rum |
Script tag or mirror checkout | SPLIT_BILGE_RUM_REPO |
Embed JS (bilge.js, pulse.js) |
public/js |
Static host or script src |
SPLIT_BILGE_EMBED_JS_REPO |
| Edge ingest Worker (operators) | packages/bilge-ingest-edge |
Wrangler deploy + KV sync | — |
| Ingest satellite (operators) | packages/bilge-ingest-satellite |
BILGE_INGEST_ONLY=true on app servers |
— |
The main app installs bilgesh/tracing and bilgesh/cli from Packagist (same as customer apps). Sources still live at packages/bilge-tracing and packages/bilge-cli. Container builds copy only composer.json / composer.lock first, so these must not be Composer path repositories.
Where to read next
| Topic | Document |
|---|---|
| Laravel env, glows, breadcrumbs, service provider | packages/bilge-tracing/README.md |
CLI commands, ship-logs, agent skill |
packages/bilge-cli/README.md |
| MCP server (Cursor, agents) | MCP server |
Rails env, install!, report_exception |
packages/bilge-rails/README.md |
| WordPress: Settings → Bilge, test event | packages/bilge-wordpress/README.md |
| Product UI and workflows | Using the app |
| Framework comparison (short) | Framework integrations |
| Edge Worker deploy (operators) | Edge ingest (Cloudflare) |