We would like to remove the device_name from the deviceInfo to anonymise the error, unfortunately it's currently impossible.
After reviewing there seem to be 2 possible solutions:
- Expose the
scrubPaths from rollbar.js in rollbar-react-native, this would also allow devs to scrub other nested fields.
- Add an option to the config to disable the
device_name.
- Remove the
device_name using the exposed transform option, however the payload isn't set yet when transform is called, which won't allow us to change the device info.
We would like to remove the
device_namefrom thedeviceInfoto anonymise the error, unfortunately it's currently impossible.After reviewing there seem to be 2 possible solutions:
scrubPathsfrom rollbar.js in rollbar-react-native, this would also allow devs to scrub other nested fields.device_name.device_nameusing the exposedtransformoption, however the payload isn't set yet whentransformis called, which won't allow us to change the device info.