From dbfba564c5d814889e87919b875dad61bc1ba78c Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Tue, 10 Dec 2024 11:56:43 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7(backend)=20fix=20sentry=20deprecat?= =?UTF-8?q?ed=20scope?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `sentry_sdk.configure_scope` is deprecated and will be removed in the next major version. (commit taken from people by @qbey) --- src/backend/meet/settings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/backend/meet/settings.py b/src/backend/meet/settings.py index 71ed9f8e..a1a21fd1 100755 --- a/src/backend/meet/settings.py +++ b/src/backend/meet/settings.py @@ -503,9 +503,10 @@ class Base(Configuration): release=get_release(), integrations=[DjangoIntegration()], ) - with sentry_sdk.configure_scope() as scope: - scope.set_extra("application", "backend") + # Add the application name to the Sentry scope + scope = sentry_sdk.get_global_scope() + scope.set_tag("application", "backend") class Build(Base): """Settings used when the application is built.