David Burke a0e4fd048c Merge branch 'renovate/debian-trixie-slim' into 'master'
chore(deps): update debian:trixie-slim docker digest to a72b443

See merge request glitchtip/glitchtip-backend!2643
2026-11-06 07:20:37 +00:00
.
2023-11-16 11:12:07 -05:00
2025-05-27 18:25:47 -04:00
2020-05-01 23:20:53 -04:00
2026-01-05 16:34:49 -05:00
2026-01-15 15:33:49 -05:00
2026-01-25 12:35:40 -05:00
2019-12-08 10:40:43 -05:00
2026-01-05 16:34:49 -05:00
2020-11-18 21:05:19 -05:00
.
2023-05-25 09:27:46 -04:00

Gitter

<script src="https://liberapay.com/GlitchTip/widgets/button.js"></script>

GlitchTip Backend

GlitchTip is an open source, Sentry API compatible error tracking platform. It is a partial fork/mostly re-implementation of Sentry's open source codebase before it went proprietary. Its goals are to be a modern, easy-to-develop error tracking platform that respects your freedom to use it any way you wish. Some differences include:

  • A modern development environment with Python 3, Django 6, async, and types.
  • Simplicity over features. We use Postgres to store error data. Our code base is a fraction of the size of Sentry and looks like a typical Django app. We leverage existing open source Django ecosystem apps whenever possible.
  • Lightweight - GlitchTip runs with as little as 512MB of ram. We use PostgreSQL. Valkey is optional improved performance.
  • Respects your privacy. No massive JS bundles. No invasive tracking. No third party spying. Our marketing site runs the privacy-focused Plausible analytics. Self hosted GlitchTip will never report home. We will never know if you run it yourself.
  • Commitment to open source. We use open source tools like GitLab whenever possible. With our MIT license, you can use it for anything you'd like and even sell it. We believe in competition and hope you make GlitchTip even better.

GlitchTip is a stable platform used in production environments for several years.

Developing

We use Docker for development. View our Contributing documentation if you'd like to help make GlitchTip better. See API Documentation

Run local dev environment

This repo is the backend API only. To get a working web UI, you also need the GlitchTip Frontend. Without the frontend, you will see TemplateDoesNotExist errors when opening the site in a browser.

  1. Ensure docker and docker-compose are installed
  2. Execute docker compose up (or make start)
  3. Execute docker compose run --rm web ./manage.py migrate (or make migrate)
  4. Clone and run the frontend with npm start — it proxies API requests to the backend automatically

Run tests with docker compose run --rm web ./manage.py test (or make test) and see the logs with docker compose logs -ft (or make logs).

Execute make help for more shortcuts.

Run HTTPS locally for testing FIDO2 keys

  1. cp compose.yml compose.override.yml
  2. Edit the override file and set command: ./manage.py runsslserver 0.0.0.0:8000
  3. Restart docker compose services

Run with advanced partitioning

Using pg_partman requires the extension to be installed in postgres. compose.part.yml offers an alternative image. Switching between advanced and default partitioning is not supported.

Execute the containers by running:

docker compose -f compose.yml -f compose.part.yml up
# or: make partman-start

This automatically configures pg_partman but you can update it manually with ./manage.py setup_advanced_partitions.

Default partitioning uses DATE partitions managed by Django. Advanced partitioning uses nested ORG_ID HASH > DATE partitions managed by pg_partman.

Load testing

Load benchmarks live in benchmarks/ — see run_ingest_bench.sh (memory growth under sustained load).

Memory profiling

Use memray to profile. For example, to profile the server (which also runs the task worker and scheduler) replace the container's command with:

exec memray run -o /tmp/glitchtip.bin -m granian --interface asgi glitchtip.asgi:application --host 0.0.0.0 --port 8000

Then run memray flamegraph /tmp/glitchtip.bin on the above file output.

Observability metrics with Prometheus

  1. Edit monitoring/prometheus/prometheus.yml and set credentials to a GlitchTip auth token
  2. Execute docker compose -f compose.yml -f compose.metrics.yml up

GCP Logging

In order to enable json logging, set the environment as follows::

DJANGO_LOGGING_HANDLER_CLASS=google.cloud.logging_v2.handlers.ContainerEngineHandler

Acknowledgements

  • Thank you to the Sentry team for their ongoing open source SDK work and formerly open source backend of which this project is based on.
  • We use gitter for our public gitter room
  • Plausible Analytics is used for analytics on our marketing site (glitchtip.com)
  • Django - no other web framework is as feature complete
  • django-ninja/Pydantic - brings typed and async-first api design
6.1.8
Latest
2026-11-04 15:36:25 -05:00
Languages
Python 94.1%
HTML 4.6%
Shell 0.8%
PLpgSQL 0.2%
JavaScript 0.1%