def METHOD_NAME(event, hint):
    def _scrub_sensitive_data_recursively(data, name=None):
        # This only works with lists or dicts but we shouldn't need anything
        # else.
        if isinstance(data, (list, dict)):
            items = data.items() if isinstance(data, dict) else enumerate(data)
            for key, value in items:
                data[key] = _scrub_sensitive_data_recursively(value, name=key)
        elif (
            isinstance(data, str)
            and isinstance(name, str)
            and name.lower() in SENTRY_SENSITIVE_FIELDS
        ):
            data = '*** redacted ***'
        return data
    try:
        event = _scrub_sensitive_data_recursively(event)
    except Exception:
        pass
    if 'ip_address' in event.get('user', {}):
        event['user'].pop('ip_address')
    return event