Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

πŸ”§(summary) add setting to control Sentry traces sampling rate

lebaudantoinef2d50770cf8d
diff --git a/CHANGELOG.md b/CHANGELOG.md
index df3a7db2..a5205ca7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,7 @@ and this project adheres to
- πŸ”’(backend) throttle meeting link generation
- πŸ”’οΈ(backend) add a daily cap on room creation
+- πŸ”§(summary) add setting to control Sentry traces sampling rate
### Fixed
diff --git a/src/summary/summary/core/config.py b/src/summary/summary/core/config.py
index 00beff6e..eff7b893 100644
--- a/src/summary/summary/core/config.py
+++ b/src/summary/summary/core/config.py
@@ -128,6 +128,7 @@ class Settings(BaseSettings):
# Sentry
sentry_is_enabled: bool = False
sentry_dsn: Optional[str] = None
+ sentry_traces_sample_rate: float = Field(default=0.1, ge=0.0, le=1.0)
# Posthog (analytics)
posthog_enabled: bool = False
diff --git a/src/summary/summary/core/sentry.py b/src/summary/summary/core/sentry.py
index 422a255b..d6a6c8f1 100644
--- a/src/summary/summary/core/sentry.py
+++ b/src/summary/summary/core/sentry.py
@@ -84,7 +84,7 @@ def init_sentry() -> None:
sentry_sdk.init(
dsn=settings.sentry_dsn,
- enable_tracing=True,
+ traces_sample_rate=settings.sentry_traces_sample_rate,
# Never attach request bodies, Celery task arguments or user data.
send_default_pii=False,
# Task creation requests carry the content to summarize.