We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d536268 commit b4066edCopy full SHA for b4066ed
sentry_sdk/integrations/spark/spark_driver.py
@@ -1,7 +1,6 @@
1
import sentry_sdk
2
from sentry_sdk.integrations import Integration
3
from sentry_sdk.utils import capture_internal_exceptions, ensure_integration_enabled
4
-from sentry_sdk.scope import Scope
5
6
from typing import TYPE_CHECKING
7
@@ -232,8 +231,9 @@ def _add_breadcrumb(
232
231
data=None, # type: Optional[dict[str, Any]]
233
):
234
# type: (...) -> None
235
- Scope.set_isolation_scope(Scope.get_global_scope())
236
- sentry_sdk.add_breadcrumb(level=level, message=message, data=data)
+ sentry_sdk.get_global_scope().add_breadcrumb(
+ level=level, message=message, data=data
+ )
237
238
def onJobStart(self, jobStart): # noqa: N802,N803
239
# type: (Any) -> None
0 commit comments