Search code examples
javascriptreact-nativebugsnag

How to add more metadata to user context on Bugsnag?


Apparently the Bugsnag setUser method only accepts three params: id, name and e-mail. How to attach my custom metadata to the user, like the Sentry setUserContext method?

setUser(id, name, email)


I believe it's somehow possible because I see this image on Custom Filters page and it has a custom subscription_level field:

https://docs.bugsnag.com/assets/images/product/features/custom-filters/add-from-dashboard.png


Solution

  • Bugsnag Employee here. You can do this! Here are the docs for react native and javascript

    https://docs.bugsnag.com/platforms/react-native/#attaching-custom-diagnostics

    https://docs.bugsnag.com/platforms/browsers/#custom-diagnostics