Closed MarcHbb closed 1 year ago
Seems that setUser can only support one value, closing this issue
For anyone else finding this, setUser
accepts an object with multiple values: id, username, email, ip
https://docs.sentry.io/platforms/javascript/enriching-events/identify-user/
Summary
I'm trying to retrieve user information from an issue
The issue is correctly reported, but I see no information about the user in the issue information.
EDIT
When I remove
Sentry.Native.setUser({ id: userId, username: username });
I get the user id by default from sentry When I get a crash,Sentry.Native.setUser({ id: userId, username: username });
seems to work (but got null, I will check later if it's my code or not) But when I usecaptureException
it seems to be ignoredManaged or bare workflow? If you have
ios/
orandroid/
directories in your project, the answer is bare!managed
What platform(s) does this occur on?
iOS
SDK Version (managed workflow only)
SKD : 48.0.19 sentry-expo : ~6.1.0 @sentry/react-native: 4.13.0
Environment
Reproducible demo or steps to reproduce from a blank project
In an expo managed workflow file:
import * as Sentry from 'sentry-expo';
In a file :