rollbar-react-native icon indicating copy to clipboard operation
rollbar-react-native copied to clipboard

Remove device_name for privacy

Open DaveyNedap opened this issue 4 years ago • 1 comments

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.

DaveyNedap avatar Jan 04 '22 10:01 DaveyNedap

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 }

neil-gebbie-smarterley avatar May 04 '22 14:05 neil-gebbie-smarterley