From 7a8b50b5f02de52d1be09c890a07a8b3e6ffdbec Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Tue, 27 May 2025 13:58:05 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F(backend)=20use=20sentry=20ta?= =?UTF-8?q?gs=20instead=20of=20extra=20scope?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To ease filtering issues on sentry, we want to use tags instead of extra scope. Tags are indexed and searchable, it's not the case with extra scope. Moreover using set_extra to add additional data is deprecated. Commit #ebf6d46 on docs. --- src/backend/meet/settings.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/backend/meet/settings.py b/src/backend/meet/settings.py index 1b4ed9ce..6ca858c2 100755 --- a/src/backend/meet/settings.py +++ b/src/backend/meet/settings.py @@ -638,10 +638,7 @@ class Base(Configuration): release=get_release(), integrations=[DjangoIntegration()], ) - - # Add the application name to the Sentry scope - scope = sentry_sdk.get_global_scope() - scope.set_tag("application", "backend") + sentry_sdk.set_tag("application", "backend") # Ignore the logs added by the DockerflowMiddleware ignore_logger("request.summary")