From 9e91bbe41786e3b40b387e3ca5958a898a48c421 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Mon, 24 Mar 2025 20:18:53 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=87(backend)=20reduce=20noisy=20logs?= =?UTF-8?q?=20in=20Sentry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ignore logs from DockerflowMiddleware and minimize unnecessary log submissions. --- src/backend/meet/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/meet/settings.py b/src/backend/meet/settings.py index 69f56b5d..3d32dac2 100755 --- a/src/backend/meet/settings.py +++ b/src/backend/meet/settings.py @@ -19,6 +19,7 @@ from django.utils.translation import gettext_lazy as _ import sentry_sdk from configurations import Configuration, values from sentry_sdk.integrations.django import DjangoIntegration +from sentry_sdk.integrations.logging import ignore_logger # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) @@ -575,6 +576,9 @@ class Base(Configuration): scope = sentry_sdk.get_global_scope() scope.set_tag("application", "backend") + # Ignore the logs added by the DockerflowMiddleware + ignore_logger("request.summary") + class Build(Base): """Settings used when the application is built.