Django backend for GlitchTip https://glitchtip.com/
David Burke 243bbc267e Merge branch 'renovate/ruff-0.x-lockfile' into 'master' | 11 hours ago | |
---|---|---|
.vscode | 1 year ago | |
apps | 1 day ago | |
assets | 4 years ago | |
bin | 4 days ago | |
bitfield | 1 year ago | |
django_rest_mfa | 2 months ago | |
events | 4 months ago | |
glitchtip | 1 week ago | |
issues | 7 months ago | |
monitoring | 2 years ago | |
psqlextra | 9 months ago | |
sentry | 7 months ago | |
templates | 3 weeks ago | |
test_api | 2 months ago | |
uploads | 2 years ago | |
.dockerignore | 1 month ago | |
.gitignore | 2 months ago | |
.gitlab-ci.yml | 1 week ago | |
.pylintrc | 3 years ago | |
CHANGELOG | 3 weeks ago | |
CONTRIBUTING.md | 9 months ago | |
Dockerfile | 1 month ago | |
LICENSE | 5 years ago | |
NOTICE.md | 4 years ago | |
README.md | 4 months ago | |
app.py | 2 months ago | |
docker-compose.locust.yml | 8 months ago | |
docker-compose.metrics.yml | 2 years ago | |
docker-compose.yml | 6 days ago | |
locustfile.py | 8 months ago | |
manage.py | 1 year ago | |
pyproject.toml | 3 weeks ago | |
renovate.json | 1 year ago | |
uv.lock | 11 hours ago |
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:
GlitchTip is a stable platform used in production environments for several years.
We use Docker for development. View our Contributing documentation if you'd like to help make GlitchTip better. See API Documentation
docker compose up
docker compose run --rm web ./manage.py migrate
Run tests with docker-compose run --rm web ./manage.py test
cp docker-compose.yml docker-compose.override.yml
command: ./manage.py runsslserver 0.0.0.0:8000
VS Code can do type checking and type inference. However, it requires setting up a virtual environment.
apt install python3-dev python3-venv
python -m venv env
source env/bin/activate
poetry install
First set the env var IS_LOAD_TEST to true in docker-compose.yml
Locust is built into the dev dependencies. To run with Locust run
docker compose -f docker-compose.yml -f docker-compose.locust.yml up
Now go to localhost:8089 to run the test.
Locust will not be installed to production docker images and cannot be run from them.
docker compose -f docker-compose.yml -f docker-compose.metrics.yml up
In order to enable json logging, set the environment as follows::
DJANGO_LOGGING_HANDLER_CLASS=google.cloud.logging_v2.handlers.ContainerEngineHandler
UWSGI_LOG_ENCODER='json {"severity":"info","timestamp":${unix},"message":"${msg}"}}'