+ Centry logging
This commit is contained in:
parent
be224b2cd6
commit
1a8cde0485
|
|
@ -12,6 +12,8 @@ https://docs.djangoproject.com/en/4.2/ref/settings/
|
||||||
import os
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
import sentry_sdk
|
||||||
|
|
||||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
|
|
||||||
|
|
@ -196,3 +198,16 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
||||||
|
|
||||||
CHECKLIST_ID_LENGTH = 10
|
CHECKLIST_ID_LENGTH = 10
|
||||||
COMMISSION_OVER_150K = 1.1
|
COMMISSION_OVER_150K = 1.1
|
||||||
|
|
||||||
|
# Logging
|
||||||
|
SENTRY_DSN = "***REMOVED***"
|
||||||
|
sentry_sdk.init(
|
||||||
|
dsn=SENTRY_DSN,
|
||||||
|
# Set traces_sample_rate to 1.0 to capture 100%
|
||||||
|
# of transactions for performance monitoring.
|
||||||
|
traces_sample_rate=1.0,
|
||||||
|
# Set profiles_sample_rate to 1.0 to profile 100%
|
||||||
|
# of sampled transactions.
|
||||||
|
# We recommend adjusting this value in production.
|
||||||
|
profiles_sample_rate=1.0,
|
||||||
|
)
|
||||||
|
|
|
||||||
|
|
@ -14,5 +14,9 @@ tqdm==4.65.0
|
||||||
django-debug-toolbar==4.1.0
|
django-debug-toolbar==4.1.0
|
||||||
requests==2.31.0
|
requests==2.31.0
|
||||||
|
|
||||||
|
# Logging
|
||||||
|
sentry-sdk==1.34.0
|
||||||
|
sentry-telegram-py3==0.6.1
|
||||||
|
|
||||||
# Deployment
|
# Deployment
|
||||||
uWSGI==2.0.21
|
uWSGI==2.0.21
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user