Open source video conferencing app powered by LiveKit. Built with Django and React.
✨(backend) allow configuring trace sampling
lebaudantoine172dc706492f
diff --git a/src/backend/meet/settings.py b/src/backend/meet/settings.pyindex aede886f..44e353ef 100755--- a/src/backend/meet/settings.py+++ b/src/backend/meet/settings.py@@ -469,6 +469,9 @@ class Base(Configuration):# SentrySENTRY_DSN = values.Value(None, environ_name="SENTRY_DSN")+ SENTRY_TRACES_SAMPLE_RATE = values.FloatValue(+ 0.0, environ_name="SENTRY_TRACES_SAMPLE_RATE", environ_prefix=None+ )# Easy thumbnailsTHUMBNAIL_EXTENSION = "webp"@@ -1230,7 +1233,14 @@ class Base(Configuration):dsn=cls.SENTRY_DSN,environment=cls.__name__.lower(), # build, test, development, productionrelease=get_release(),- integrations=[DjangoIntegration()],+ traces_sample_rate=cls.SENTRY_TRACES_SAMPLE_RATE,+ integrations=[+ DjangoIntegration(+ transaction_style="url",+ middleware_spans=True,+ cache_spans=True,+ )+ ],)sentry_sdk.set_tag("application", "backend")