Skip to content

Commit

Permalink
[BUG] Sentry scope migration fo 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroserrudo authored Aug 6, 2024
1 parent 4d80d58 commit 0f37df6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions django_guid/integrations/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ def run(self, guid: str, **kwargs: Any) -> None:
"""
import sentry_sdk

with sentry_sdk.configure_scope() as scope:
logger.debug('Setting Sentry transaction_id to %s', guid)
scope.set_tag('transaction_id', guid)
scope = sentry_sdk.get_isolation_scope()
logger.debug('Setting Sentry transaction_id to %s', guid)
scope.set_tag('transaction_id', guid)

0 comments on commit 0f37df6

Please sign in to comment.