$ show getsentry/sentry
Sentry is a full-stack application for error monitoring, performance tracing, session replay, and observability. In production, it ingests events (errors, transactions, logs, replays, profiles) from SDKs via a Relay proxy, processes them through Kafka streams, and stores data in ClickHouse (Snuba) and PostgreSQL. It exposes a REST API (Django REST Framework) and a React frontend for dashboards, issue management, alerts, and AI-powered features (Seer). The architecture is a monolith with hybrid-cloud services: a control silo for global state, cell silos for regional data, and an API gateway. Key entry points include the Relay ingestion endpoint, the Django WSGI/ASGI server, and Celery task workers. External dependencies include PostgreSQL, ClickHouse, Kafka, Redis, and cloud providers (GCP, AWS). The codebase also includes a billing/subscription layer (getsentry) and extensive third-party integrations (Slack, GitHub, Jira, etc.).
The LLM identified 3 files worth highlighting for reuse:
Implements an encrypted CharField for Django models using a symmetric encryption scheme. It is self-contained, provides transparent encryption/decryption on field access, and can be extracted into any Django project needing encrypted fields. Demonstrates craftsmanship in handling serialization, database storage, and query support.
Provides the base class for the analytics event system, including event class registration, dispatching, and backend abstraction (e.g., pubsub, Amplitude). The pattern allows decoupling event definitions from delivery, and the base class can be reused in any application needing a pluggable analytics pipeline. The event registration pattern is clean and extensible.
A reusable Alert component from the internal design system (@sentry/scraps). It supports multiple types (error, warning, info, success), expandable content, and system icons. The component is self-contained with minimal internal dependencies and follows a composable pattern. It could be extracted as a standalone UI library component for any React project.