Django backend for GlitchTip https://glitchtip.com/
David Burke cf2262386d . | 1 year ago | |
---|---|---|
.vscode | 3 years ago | |
alerts | 1 year ago | |
api_tokens | 1 year 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 | 1 year ago | |
issues | 1 year ago | |
monitoring | 2 years ago | |
observability | 1 year ago | |
organizations_ext | 1 year ago | |
performance | 1 year ago | |
projects | 1 year ago | |
releases | 1 year ago | |
sentry | 1 year 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 | 1 year ago | |
.pylintrc | 3 years ago | |
CONTRIBUTING.md | 1 year ago | |
Dockerfile | 1 year ago | |
LICENSE | 5 years ago | |
NOTICE.md | 4 years ago | |
README.md | 2 years 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 | |
mypy.ini | 3 years ago | |
poetry.lock | 1 year ago | |
pyproject.toml | 1 year 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:
Project status: Stable. Open an issue and say hello if you'd like to help. We are able to process basic error requests from the open source Sentry client tools. More features are on the way.
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
python3 -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}"}}'