David SantosandClaude Sonnet 4.6 da57d2a444 feat(clients): add Python, Go, and Java client libraries (BIT-14250)
Zero-dependency clients for errors.bitreport.pt following the same
patterns as clients/node and clients/php: batch size 25, 5 s flush
interval, 8 s HTTP timeout, fire-and-forget, env-var config.

Each client ships with unit tests backed by an embedded HTTP server
(no mocks), an example file, and a build manifest (pyproject.toml,
go.mod, pom.xml).

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-04-27 10:08:11 +00:00

errors.bitreport.pt

BitReport central error reporting platform: ingest API, collector worker, admin UI (incidents), MariaDB migrations, and optional admin portal (auth/RBAC) from BIT-183.

Remote: https://git.bitreport.pt/BitReport.pt/errors.bitreport.pt.git
Tracking: Paperclip BIT-247 (migration from OTT/error-reporting/).

Layout

Path Role
ingest-api/ Fastify HTTP ingest (BIT-154.x)
collector-worker/ Polls configured sources → ingest API
admin-ui/ Next.js operator UI (incidents)
database/error_reporting/ SQL migrations + dev seed (used by Compose + LXC)
deploy/lxc/ systemd, nginx examples, migrate script (no Docker)
docker-compose.yml, .env.example Local / Proxmox Docker stack
api/ Fastify admin API — sessions, RBAC (BIT-183)
web/ Next.js admin login/UI for api/
db/migrations/ Admin-user schema (SQL); applied with error_reporting migrations via scripts/docker-migrate.sh
docs/ Permission matrix, deployment runbooks

Frontend stack (Next.js / React) — BIT-2516

Decision: Option A from the audit — both operator-facing Next apps stay on the same major line (Next 15 + React 19), with pinned versions so web/ and admin-ui/ do not drift.

Package admin-ui/ web/
next / eslint-config-next 15.5.15 15.5.15
react / react-dom 19.2.5 19.2.5
@types/react / @types/react-dom 19.2.14 / 19.2.3 19.2.14 / 19.2.3

Node: >=20 for both. There is no shared npm package between the two apps today; alignment is by explicit pins and this table. Revisit when upgrading either app (bump both + run npm run build in each).

Docker Compose (ingest stack)

From the repository root:

cp .env.example .env
docker compose up --build
curl -sf "http://127.0.0.1:${ER_PUBLISH_INGEST_PORT:-3041}/health"

Docs

Tests (local)

cd ingest-api && npm ci && npm test
cd ../api && npm ci && npm test

Integration tests for ingest (ingest-api/src/integration.twoProjects.test.ts) require a migrated MariaDB and:

export ERROR_REPORTING_TEST_DATABASE_URL='mysql://USER:[email protected]:3306/error_reporting'
cd ingest-api && npm test
S
Description
BitReport Error Reporting platform — multi-project ingest, admin UI, collector workers (BIT-154)
Readme
1.3 MiB
0 Stars 32 Watchers 0 Forks
Languages
TypeScript 77.1%
Shell 8.6%
Python 5%
PLpgSQL 4.8%
JavaScript 2.4%
Other 2.1%