Skip to content

Data Collection Desensitization

If you want to perform full desensitization on a field, it is recommended to use SDKConfig.dataModifier for better performance. If you need fine-grained rule replacement, it is recommended to use SDKConfig.lineDataModifier.

Single Field Modification (dataModifier)

  • Purpose: Modify a single field value in the data.
  • Parameter format: {key: newValue}
  • Example: {"device_uuid": "xxx"} will replace the device_uuid field value in the target data with "xxx".

Single Data Line Modification (lineDataModifier)

  • Purpose: Modify specified field values in a certain type of data.
  • Parameter format: {measurement: {key: newValue}}
  • Example: {"view": {"view_url": "xxx"}} will modify the view_url field value to "xxx" for all data of type view.
  • measurement Data Type List:
  • RUM data: view, resource, action, long_task, error
  • Log data: log

Configuration Example

FTUnityBridge.Install(new SDKConfig
{
    dataModifier = new Dictionary<string, object>
    {
        {"device_uuid", "xxx"}
    },
    lineDataModifier = new Dictionary<string, Dictionary<string, object>>
    {
        {
            "view",
            new Dictionary<string, object>
            {
                {"view_url", "xxx"}
            }
        }
    }
});