rollbar-react-native
rollbar-react-native copied to clipboard
Remove device_name for privacy
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
scrubPathsfrom 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_nameusing the exposedtransformoption, however the payload isn't set yet whentransformis called, which won't allow us to change the device info.
Hey,
I'm not sure if this helps you but on I've done this to hide the device_name:
onSendCallback: function (_isUncaught, _args, payload) { payload.client.os.device_name = undefined }