Skip to content

Commit bd44959

Browse files
committed
Propagate a copy of the scopes to threads
1 parent 0100bdb commit bd44959

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/integrations/threading.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ def sentry_start(self, *a, **kw):
5757
return old_start(self, *a, **kw)
5858

5959
if integration.propagate_scope:
60-
isolation_scope = sentry_sdk.get_isolation_scope()
61-
current_scope = sentry_sdk.get_current_scope()
60+
isolation_scope = sentry_sdk.get_isolation_scope().fork()
61+
current_scope = sentry_sdk.get_current_scope().fork()
6262
else:
6363
isolation_scope = None
6464
current_scope = None

0 commit comments

Comments
 (0)