rustrak/rustrak-server

By rustrak

Updated about 2 hours ago

Ultra-lightweight, self-hosted error tracking server. Sentry SDK compatible. ~50MB memory footprint

Image
Security
Developer tools
Monitoring & observability
1

3.1K

rustrak/rustrak-server repository overview

Rustrak Server

Ultra-lightweight, self-hosted error tracking system compatible with any Sentry SDK. Single binary, minimal dependencies, built in Rust.

Why Rustrak?

  • Minimal footprint: ~50-100MB memory, <20MB image size
  • Sentry compatible: Drop-in replacement — works with any existing Sentry SDK (JavaScript, Python, Go, Rust, etc.)
  • Two storage backends: SQLite (zero setup) or PostgreSQL (production scale)
  • Self-hosted: Your data stays on your infrastructure
  • High performance: 10,000+ events/second, <50ms P99 ingestion latency

Image Tags

TagBackendUse case
latest, vX.Y.ZSQLiteZero-dependency setup, small deployments
postgres, vX.Y.Z-postgresPostgreSQLProduction, multi-instance deployments

Quick Start (SQLite — no external database)

services:
  server:
    image: rustrak/rustrak-server:latest
    ports:
      - "8080:8080"
    volumes:
      - rustrak_data:/data
    environment:
      SESSION_SECRET_KEY: ${SESSION_SECRET_KEY}
      CREATE_SUPERUSER: [email protected]:changeme123

volumes:
  rustrak_data:
SESSION_SECRET_KEY=$(openssl rand -hex 32)
docker compose up -d

Quick Start (PostgreSQL)

services:
  server:
    image: rustrak/rustrak-server:postgres
    ports:
      - "8080:8080"
    environment:
      DATABASE_URL: postgres://user:pass@db:5432/rustrak
      SESSION_SECRET_KEY: ${SESSION_SECRET_KEY}
      CREATE_SUPERUSER: [email protected]:changeme123

Configuration

VariableRequiredDescription
SESSION_SECRET_KEYYes64-char hex string — generate with openssl rand -hex 32
DATABASE_URLPostgreSQL onlyPostgreSQL connection string
CREATE_SUPERUSERNoemail:password to bootstrap the first admin user
PORTNoHTTP port (default: 8080)
RUST_LOGNoLog level (info, debug, warn, error)

Connect Your SDK

Point any Sentry SDK to your Rustrak instance:

# Python
import sentry_sdk
sentry_sdk.init(dsn="http://<api-token>@your-server:8080/1")
// JavaScript
Sentry.init({ dsn: "http://<api-token>@your-server:8080/1" });

No code changes needed if you're migrating from Sentry.

Ecosystem

PackageDescription
rustrak/rustrak-uiOptional web dashboard
@rustrak/clientType-safe TypeScript client
@rustrak/mcpMCP server for Claude, Cursor, Continue.dev

Tag summary

Content type

Image

Digest

sha256:35d7adcfd

Size

17 MB

Last updated

about 2 hours ago

docker pull rustrak/rustrak-server