🔧(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:
committed by
aleb_the_flash
parent
4830206bb2
commit
dbfba564c5
@@ -503,9 +503,10 @@ class Base(Configuration):
|
|||||||
release=get_release(),
|
release=get_release(),
|
||||||
integrations=[DjangoIntegration()],
|
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):
|
class Build(Base):
|
||||||
"""Settings used when the application is built.
|
"""Settings used when the application is built.
|
||||||
|
|||||||
Reference in New Issue
Block a user