diff options
| author | 2023-12-12 15:33:55 +0000 | |
|---|---|---|
| committer | 2023-12-12 15:33:56 +0000 | |
| commit | 6a0efbb3ae7c321421a30de726986522a79e0624 (patch) | |
| tree | 6be08075b13367c5aeb8f611cad1159c465495ef | |
| parent | Enable Sentry profile sampling (diff) | |
Enable tracing and include source for slow queries
| -rw-r--r-- | pydis_site/settings.py | 5 | 
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, ...) | 
