aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/settings.py
diff options
context:
space:
mode:
authorGravatar jchristgit <[email protected]>2023-12-12 17:02:53 +0100
committerGravatar GitHub <[email protected]>2023-12-12 17:02:53 +0100
commitefd58583d4337a70dbec8d326fd888a224dda67a (patch)
tree8dddf9e22fbc04b561242e76fb7416b70c5292f6 /pydis_site/settings.py
parentEnable Sentry profile sampling (diff)
parentSimplify is_bot_pr_approval logic (diff)
Merge pull request #1172 from python-discord/update-sentry-config
Enable tracing and include source for slow queries
Diffstat (limited to 'pydis_site/settings.py')
-rw-r--r--pydis_site/settings.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pydis_site/settings.py b/pydis_site/settings.py
index ec8efac3..5a6edfdf 100644
--- a/pydis_site/settings.py
+++ b/pydis_site/settings.py
@@ -55,7 +55,10 @@ if not STATIC_BUILD:
integrations=[DjangoIntegration(), LoggingIntegration(level=logging.DEBUG, event_level=logging.ERROR)],
send_default_pii=True,
release=f"site@{GIT_SHA}",
- profiles_sample_rate=0.5,
+ profiles_sample_rate=1.0,
+ enable_tracing=True,
+ enable_db_query_source=True,
+ db_query_source_threshold_ms=100, # Queries slower that 100ms will include the source in the event
)
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)