File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
sentry_sdk/integrations/spark Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1010 from typing import Optional
1111
1212 from sentry_sdk ._types import Event , Hint
13+ from pyspark import SparkContext
1314
1415
1516class SparkIntegration (Integration ):
@@ -38,7 +39,7 @@ def _set_app_properties():
3839
3940
4041def _start_sentry_listener (sc ):
41- # type: (Any ) -> None
42+ # type: (SparkContext ) -> None
4243 """
4344 Start java gateway server to add custom `SparkListener`
4445 """
@@ -51,7 +52,7 @@ def _start_sentry_listener(sc):
5152
5253
5354def _add_event_processor (sc ):
54- # type: (Any ) -> None
55+ # type: (SparkContext ) -> None
5556 scope = sentry_sdk .get_isolation_scope ()
5657
5758 @scope .add_event_processor
@@ -88,7 +89,6 @@ def process_event(event, hint):
8889
8990def _activate_integration (sc ):
9091 # type: (SparkContext) -> None
91- from pyspark import SparkContext
9292
9393 _start_sentry_listener (sc )
9494 _set_app_properties ()
You can’t perform that action at this time.
0 commit comments