This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[0.3.3]
|
||||
- feat: sentry integration enabled
|
||||
- feat: sentry integration enabled with glitchtip
|
||||
- fix: reindex on update shout
|
||||
- packages upgrade, isort
|
||||
|
||||
|
||||
@@ -3,14 +3,14 @@ from sentry_sdk.integrations.ariadne import AriadneIntegration
|
||||
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
|
||||
from sentry_sdk.integrations.starlette import StarletteIntegration
|
||||
|
||||
from settings import SENTRY_DSN
|
||||
from settings import GLITCHTIP_DSN
|
||||
|
||||
|
||||
def start_sentry():
|
||||
# sentry monitoring
|
||||
try:
|
||||
sentry_sdk.init(
|
||||
SENTRY_DSN,
|
||||
GLITCHTIP_DSN,
|
||||
# Set traces_sample_rate to 1.0 to capture 100%
|
||||
# of transactions for performance monitoring.
|
||||
traces_sample_rate=1.0,
|
||||
|
||||
@@ -10,7 +10,7 @@ DB_URL = (
|
||||
REDIS_URL = environ.get('REDIS_URL') or 'redis://127.0.0.1'
|
||||
API_BASE = environ.get('API_BASE') or ''
|
||||
AUTH_URL = environ.get('AUTH_URL') or ''
|
||||
SENTRY_DSN = environ.get('SENTRY_DSN')
|
||||
GLITCHTIP_DSN = environ.get('GLITCHTIP_DSN')
|
||||
DEV_SERVER_PID_FILE_NAME = 'dev-server.pid'
|
||||
MODE = 'development' if 'dev' in sys.argv else 'production'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user