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