Skip to content

Commit

Permalink
Enable tracing and include source for slow queries
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLovering committed Dec 12, 2023
1 parent 6ec6fff commit 6a0efbb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pydis_site/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@
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, ...)
Expand Down

0 comments on commit 6a0efbb

Please sign in to comment.