Slice 11: retention and operations

f01f750 · gmorell · 2026-12-02 03:50

1 files +20 -1

Files changed

modified ROADMAP.md
+20 −1
@@ -461,7 +461,7 @@ This is new: GlitchTip throws `check_in` items away.
461 461 - The releases list has a crash-free · adoption column. A release's page has health tiles and an hourly sessions chart, with crashes in the error colour.
462 462 - Tested with the real sentry-python 3.0.2: request-mode aggregates plus an application session that crashes.
463 463
464 −### 11. Retention and operations · medium
464 +### 11. Retention and operations · medium · **done**
465 465 - **Retention** per type, settable per org: events and logs 90 days, releases 365 days. Old partitions are dropped. Orphaned issues, blobs and bundles are swept, and soft-deleted orgs and projects are removed by Oban jobs.
466 466 - **Health:** `/_health/` and `/api/0/internal/health/`; `/metrics` for Prometheus via telemetry.
467 467 - **Dogfooding:** Vigil reports its own errors, crons and traces to itself through sentry-elixir. A loop guard drops events about the ingest path itself.
@@ -474,6 +474,25 @@ This is new: GlitchTip throws `check_in` items away.
474 474 - An MCP endpoint with the same Bearer tokens, offering issue, event and log tools as GlitchTip's MCP server does.
475 475 - The sentry-wizard endpoints.
476 476 - The DSN-keys API.
477 +- **As built:**
478 + - Retention:
479 + - Organizations may keep less than the instance's partition limits (`event_`, `log_`, `release_retention_days`, under Settings → General).
480 + - The daily `Retention.SweepWorker` deletes rows past an org's shorter limit, issues whose last event is past it, and issues soft-deleted over a day ago.
481 + - It also deletes releases older than the release limit with no issue seen since, plus orphaned artifact bundles and their stored files.
482 + - It queues a `PurgeWorker` per project or organization soft-deleted over a day ago.
483 + - Health:
484 + - `/_health/` (liveness) and `/api/0/internal/health/` (readiness, Sentry's shape) are served by `VigilWeb.HealthPlug`, ahead of sessions.
485 + - Prometheus `/metrics` (`telemetry_metrics_prometheus_core`) is off unless `METRICS_TOKEN` or `METRICS_PUBLIC` is set. Ingest emits `[:vigil, :ingest, :accepted | :processed]`, and backlog gauges are polled.
486 + - Dogfooding: sentry-elixir 14.1 is a dependency, inert until `VIGIL_SELF_DSN`. It reports errors (logger handler, `PlugCapture`), Oban errors and every cron as a monitor. `Vigil.SelfReport.before_send/1` drops events whose request, Oban worker or stack frames are the ingest path. Tested end to end against the instance itself. Traces aren't reported: that needs OpenTelemetry deps.
487 + - Packaging:
488 + - The Dockerfile is Debian, Elixir 1.20.4 / OTP 28.5, with rustup 1.92.0 for the NIFs; the runner adds nothing for them, runs as `nobody`, and keeps storage in `/data/storage`.
489 + - Forgejo `checks.yml` (cargo fmt and clippy per crate, `mix precommit` on Postgres 17), `audit.yml` (osv-scanner over mix.lock and the Cargo.locks) and `image.yml`.
490 + - `bin/token` and `mix vigil.token`.
491 + - SMTP through gen_smtp (`SMTP_*`, `MAIL_FROM_*`), falling back to the log adapter.
492 + - libcluster's Kubernetes topology when `POD_IP` is set.
493 + - `docs/deploy.md` lists every variable.
494 + - The image build and the workflows haven't been run, since docker isn't available here; the release itself was built and booted.
495 + - Not done: the optional MCP endpoint and sentry-wizard. The DSN-keys API moved to slice 12.
477 496
478 497 ### 12. Native, mobile and the `vigil` CLI · large
479 498 - Debug information file assemble (`/projects/{o}/{p}/files/difs/assemble/`), Proguard mappings, minidump processing, and native and JVM symbolication through `vigil_symbolic`.

Parents: 27ce267