From 41c60326dab18442603277239fb7428cd6c0dfa2 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Tue, 12 Dec 2023 15:32:33 +0000 Subject: [PATCH] Enable tracing and include source for slow queries --- pydis_site/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pydis_site/settings.py b/pydis_site/settings.py index ec8efac30e..1dcf1b6d93 100644 --- a/pydis_site/settings.py +++ b/pydis_site/settings.py @@ -55,7 +55,9 @@ 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, # Queries slower that 100ms will include the source in the event ) # Build paths inside the project like this: os.path.join(BASE_DIR, ...)