rustrak

Self-hosted, open-source Sentry alternative in Rust. Error tracking, performance, logs and AI agent traces in one small container that works with the Sentry SDK

What is rustrak?

Self-hosted, open-source Sentry alternative in Rust. Error tracking, performance, logs and AI agent traces in one small container that works with the Sentry SDKs. SQLite or PostgreSQL.

Overview of rustrak

What it is

Rustrak is a self-hosted, open-source error tracker written in Rust. It accepts the standard Sentry protocol, so existing Sentry SDKs can point at Rustrak by changing one configuration string. It runs as a single process with SQLite by default, requiring no separate database or broker. It also handles logs, transactions, release health, and AI agent traces.

Key features

  • Accepts the standard Sentry envelope protocol; any Sentry SDK works without code changes.
  • Ingestion is two-phase: the endpoint parses the envelope, writes it to disk, returns 200, then a spawned task does database work.
  • Dashboard is static files served by the same process; the UI and API run in one container.
  • Errors are grouped into issues by deterministic fingerprint (SDK fingerprint, or exception type + first message line + transaction).
  • AI agent traces appear on their own page with per-trace waterfalls, duration percentiles, top models by calls and tokens, and top tools.
  • Logs are stored as a first-class event type with six severities, per-row typed attributes, and trace_id linking to the originating span.
  • Alert rules fire on new_issue, regression, or unmute events, with destinations including Slack, SMTP email, or a plain JSON webhook.
  • Projects support three roles (Admin, Member, Viewer) with invitations.
  • The server reports storage usage and enforces configurable retention with manual cleanup and source-map garbage collection.
  • A REST API typed client and a built-in MCP endpoint allow assistants to triage the instance.

Use cases

  • Self-hosting error tracking on existing hardware without per-event pricing or sampling.
  • Migrating from Sentry SaaS to a self-hosted instance by changing only the DSN string.
  • Monitoring AI agent runs with LLM call traces, token counts, and tool usage.
  • Collecting structured logs alongside errors and performance spans in a single system.
  • Tracking release health with crash-free session and user percentages per release.
  • Setting up alerts for new issues, regressions, or unmuted issues with Slack, email, or webhook destinations.

Getting started

- SESSION_SECRET_KEY=${SESSION_SECRET_KEY}      - CREATE_SUPERUSER=${CREATE_SUPERUSER}    restart: unless-stoppedvolumes:  rustrak_data:``````bashexport SESSION_SECRET_KEY=$(openssl rand -hex 32)export [email protected]:changeme123docker compose up -d```Open http://localhost:8080 and sign in with those credentials. For PostgreSQL, use `docker-compose.postgres.yml` with the `:postgres` image.

### License and pricing

License: AGPL-3.0. Pricing: open source (no per-event pricing, no sampling, no seat fees).

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/rustrakrustrak.svg)](https://yunodb.com/tools/rustrakrustrak?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/rustrakrustrak?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/rustrakrustrak.svg" alt="Featured on YunoDB" height="20"></a>