Skip to content

Commit

Permalink
🔧(backend) fix sentry deprecated scope
Browse files Browse the repository at this point in the history
`sentry_sdk.configure_scope` is deprecated and will
be removed in the next major version.

(commit taken from people by @qbey)
  • Loading branch information
lebaudantoine committed Jan 14, 2025
1 parent a4cd6f4 commit d7e1e80
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/backend/impress/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,9 @@ def post_setup(cls):
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):
Expand Down

0 comments on commit d7e1e80

Please sign in to comment.