Services
worker-errors
Symbolicates, groups and stores errors. Port 4400 serves health only.
- Drains
error_intake, the Redis queue thatapi-ingestfills. - Symbolicates browser stacks with the release's source maps. Without object storage, stacks stay minified. Use the same bucket as
api. - Groups errors in PostgreSQL. A new or regressed group triggers issue alerts in
worker-jobs. - Writes error events and groups to ClickHouse, and syncs group status changes every minute. The sync is scheduled by
worker-jobs.
Reads PostgreSQL, ClickHouse, REDIS_STATE_URL from Redis, the ingest queue, object storage and logging. All variables below are optional.
| Variable | Default | Description |
|---|---|---|
PORT | 4400 | Health port. |
SOURCE_MAP_CACHE_BYTES | 268435456 | Memory for parsed source maps, per instance: about 80 bytes per mapping. A map whose mappings alone would not fit is not decoded: its stacks stay minified with the same mark. |
ERROR_GROUP_FLUSH_MS | 10000 | How long group status is cached before PostgreSQL is checked for regressions. 0 checks every batch. |
Fixed built-in timeouts: 5 seconds for source map symbolication per batch (past it, stacks stay minified with an openperf.symbolication.error mark), 120 seconds per intake batch, and 60 seconds per PostgreSQL statement.
Commands
The image exposes the worker-errors command:
| Command | What it does |
|---|---|
worker-errors | Runs the worker. |
worker-errors healthcheck | Exits with 0 when /healthz on PORT answers, else 1. |