Skip to content

setUserContext doesn't work #314

@haikov

Description

@haikov

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

Output of node -v && npm -v && npm ls --prod --depth=0

v7.8.0
4.2.0
...@0.1.0 ...
├── eslint@4.5.0
├── eslint-config-airbnb@15.1.0
├── eslint-plugin-jsx-a11y@6.0.2
├── eslint-plugin-react-native@3.0.1
├── react@16.0.0-alpha.12
├── react-native@0.46.4
├── react-native-camera@0.10.0
├── react-native-code-push@5.1.2-beta
├── react-native-communications@2.2.1
├── react-native-device-info@0.11.0
├── react-native-htmlview@0.12.0
├── react-native-i18n@2.0.5
├── react-native-linear-gradient@2.3.0
├── react-native-sentry@0.26.0
├── react-native-swiper@1.5.10
├── react-native-vector-icons@4.3.0
├── react-navigation@1.0.0-beta.11
├── react-redux@5.0.6
├── recompose@0.25.0
├── redux@3.7.2
├── redux-logger@3.0.6
├── redux-persist@4.8.3
├── redux-promise@0.5.3
└── redux-thunk@2.2.0

Config:

Sentry.config('https://...@sentry.io/...', {
  logLevel: SentryLog.Verbose,
}).install();

I have following issue:

setUserContext doesn't work for me. After user login event in the app I call the setUserContext function:

Sentry.setUserContext({
    id: userId,
});

Then, in debug console I see
image

But after any crash, on my Sentry dashboard, I see userId as an ip address.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions