Django backend for GlitchTip https://glitchtip.com/
James Kiger c0f745dbb6 Address camel case id discrepancy | 11 months ago | |
---|---|---|
.vscode | 1 year ago | |
alerts | 11 months ago | |
api_tokens | 1 year ago | |
apps | 11 months ago | |
assets | 4 years ago | |
bin | 1 year ago | |
bitfield | 1 year ago | |
difs | 1 year ago | |
djstripe_ext | 1 year ago | |
environments | 1 year ago | |
events | 1 year ago | |
files | 1 year ago | |
glitchtip | 11 months ago | |
issues | 11 months ago | |
monitoring | 2 years ago | |
observability | 1 year ago | |
organizations_ext | 11 months ago | |
performance | 1 year ago | |
projects | 1 year ago | |
releases | 1 year ago | |
sentry | 11 months ago | |
teams | 1 year ago | |
templates | 3 years ago | |
test_api | 1 year ago | |
uploads | 2 years ago | |
user_reports | 1 year ago | |
users | 1 year ago | |
.dockerignore | 2 years ago | |
.gitignore | 2 years ago | |
.gitlab-ci.yml | 11 months ago | |
.pylintrc | 3 years ago | |
CONTRIBUTING.md | 1 year ago | |
Dockerfile | 11 months ago | |
LICENSE | 5 years ago | |
NOTICE.md | 4 years ago | |
README.md | 1 year ago | |
docker-compose.locust.yml | 4 years ago | |
docker-compose.metrics.yml | 2 years ago | |
docker-compose.yml | 1 year ago | |
locustfile.py | 1 year ago | |
manage.py | 1 year ago | |
poetry.lock | 11 months ago | |
pyproject.toml | 11 months ago | |
renovate.json | 1 year 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.
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
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}"}}'