File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 1212from sentry_sdk .integrations .excepthook import ExcepthookIntegration
1313from sentry_sdk .integrations .logging import LoggingIntegration
1414from sentry_sdk .integrations .threading import ThreadingIntegration
15+ from sentry_sdk .scrubber import DEFAULT_DENYLIST , EventScrubber
1516
1617from ..const import SUPERVISOR_VERSION
1718from ..coresys import CoreSys
@@ -26,6 +27,7 @@ def init_sentry(coresys: CoreSys) -> None:
2627 """Initialize sentry client."""
2728 if not sentry_sdk .is_initialized ():
2829 _LOGGER .info ("Initializing Supervisor Sentry" )
30+ denylist = DEFAULT_DENYLIST + ["psk" , "ssid" ]
2931 # Don't use AsyncioIntegration(). We commonly handle task exceptions
3032 # outside of tasks. This would cause exception we gracefully handle to
3133 # be captured by sentry.
@@ -34,6 +36,7 @@ def init_sentry(coresys: CoreSys) -> None:
3436 before_send = partial (filter_data , coresys ),
3537 auto_enabling_integrations = False ,
3638 default_integrations = False ,
39+ event_scrubber = EventScrubber (denylist = denylist ),
3740 integrations = [
3841 AioHttpIntegration (
3942 failed_request_status_codes = frozenset (range (500 , 600 ))
You can’t perform that action at this time.
0 commit comments