Skip to content

Commit b4066ed

Browse files
committed
removed the setting up the isolation_scope to global
1 parent d536268 commit b4066ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sentry_sdk/integrations/spark/spark_driver.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import sentry_sdk
22
from sentry_sdk.integrations import Integration
33
from sentry_sdk.utils import capture_internal_exceptions, ensure_integration_enabled
4-
from sentry_sdk.scope import Scope
54

65
from typing import TYPE_CHECKING
76

@@ -232,8 +231,9 @@ def _add_breadcrumb(
232231
data=None, # type: Optional[dict[str, Any]]
233232
):
234233
# type: (...) -> None
235-
Scope.set_isolation_scope(Scope.get_global_scope())
236-
sentry_sdk.add_breadcrumb(level=level, message=message, data=data)
234+
sentry_sdk.get_global_scope().add_breadcrumb(
235+
level=level, message=message, data=data
236+
)
237237

238238
def onJobStart(self, jobStart): # noqa: N802,N803
239239
# type: (Any) -> None

0 commit comments

Comments
 (0)