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.mdindex 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### Fixeddiff --git a/src/summary/summary/core/config.py b/src/summary/summary/core/config.pyindex 00beff6e..eff7b893 100644--- a/src/summary/summary/core/config.py+++ b/src/summary/summary/core/config.py@@ -128,6 +128,7 @@ class Settings(BaseSettings):# Sentrysentry_is_enabled: bool = Falsesentry_dsn: Optional[str] = None+ sentry_traces_sample_rate: float = Field(default=0.1, ge=0.0, le=1.0)# Posthog (analytics)posthog_enabled: bool = Falsediff --git a/src/summary/summary/core/sentry.py b/src/summary/summary/core/sentry.pyindex 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.