🔧(backend) fix sentry deprecated scope

`sentry_sdk.configure_scope` is deprecated and will
be removed in the next major version.

(commit taken from people by @qbey)
This commit is contained in:
lebaudantoine
2025-01-14 09:43:33 +01:00
parent a4cd6f4dfb
commit d7e1e8032f
+3 -2
View File
@@ -622,8 +622,9 @@ 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):