Skip to content
Snippets Groups Projects
Commit 93f3426b authored by Alexa Valentová's avatar Alexa Valentová
Browse files

sentry integration

parent 914749d4
No related branches found
No related tags found
1 merge request!25sentry integration
Pipeline #17054 passed
from pathlib import Path from pathlib import Path
import environ import environ
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
ROOT_DIR = Path(__file__).parents[2] ROOT_DIR = Path(__file__).parents[2]
...@@ -80,6 +84,20 @@ TEMPLATES = [ ...@@ -80,6 +84,20 @@ TEMPLATES = [
] ]
# SENTRY
# ------------------------------------------------------------------------------
SENTRY_DSN = env.str("SENTRY_DSN", default="")
if SENTRY_DSN != "":
sentry_sdk.init(
dsn=SENTRY_DSN,
integrations=[
DjangoIntegration(),
],
send_default_pii=True,
)
# STATIC # STATIC
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
STATIC_URL = "/static/" STATIC_URL = "/static/"
......
gunicorn gunicorn
sentry-sdk
# #
# This file is autogenerated by pip-compile with Python 3.10 # This file is autogenerated by pip-compile with Python 3.11
# by the following command: # by the following command:
# #
# pip-compile prod.in # pip-compile prod.in
# #
certifi==2024.2.2
# via sentry-sdk
gunicorn==21.2.0 gunicorn==21.2.0
# via -r prod.in # via -r prod.in
packaging==23.2 packaging==23.2
# via gunicorn # via gunicorn
sentry-sdk==1.40.5
# via -r prod.in
urllib3==2.2.1
# via sentry-sdk
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment