remove_sentry_pii_data

omni.kit.telemetry.impl.remove_sentry_pii_data(event, hint) 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

Returns

The filtered event.

Return type

dict