Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove device_name for privacy #154

Open
DaveyNedap opened this issue Jan 4, 2022 · 1 comment
Open

Remove device_name for privacy #154

DaveyNedap opened this issue Jan 4, 2022 · 1 comment

Comments

@DaveyNedap
Copy link

DaveyNedap commented Jan 4, 2022

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.
@neil-gebbie-smarterley
Copy link

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 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants