Add env var SWH_MAIN_PACKAGE to initialize sentry_sdk with a release.
This enables tracking of issues by release/package version in sentry (https://docs.sentry.io/workflow/releases/). Also deduplicates code used to call sentry_sdk.init by making all our init code go through the same function swh.core.sentry.init_sentry."
parent
a8dd0020
No related branches found
No related tags found
Showing
- swh/core/api/gunicorn_config.py 10 additions, 24 deletionsswh/core/api/gunicorn_config.py
- swh/core/api/tests/test_gunicorn.py 24 additions, 0 deletionsswh/core/api/tests/test_gunicorn.py
- swh/core/cli/__init__.py 3 additions, 3 deletionsswh/core/cli/__init__.py
- swh/core/sentry.py 35 additions, 0 deletionsswh/core/sentry.py
- swh/core/tests/test_cli.py 34 additions, 0 deletionsswh/core/tests/test_cli.py
Loading
Please register or sign in to comment