remove_sentry_pii_data

omni.kit.telemetry.impl.sentry_extension.remove_sentry_pii_data(event, hint, app_root_path: Optional[str] = None) dict

Tries our best to remove PII data from sentry events.

We replace userId by the sessionId (unique integer per whole session) and replace any paths we find in the

message or stack trace with their last part of the path, e.g: /home/foo/bar.py becomes bar.py

Parameters
  • event (dict) – The event that we filter

  • hint (dict) – Not used but part of the API

  • app_root_path (str or None) – the root path of the app. Everything before this is considered PII

Returns

The filtered event.

Return type

dict