sentry-native C++ app not reporting any user information after sentry_set_user
#874
-
Description I can't get seem to get sentry-native in my C++ application to send any user information along with message events or crash events, even after using See code below. I construct the sentry options, then the user, then call I am, however, able to add any builtin tags, for example I can set the environment name to the user's hostname and that shows in both the normal messages and crash dumps. This could solve our use case but ideally we'd like to use real user tracking and sessions. Am I using the user object wrong? Appreciate the help! When does the problem happen
Environment
Steps To Reproduce My initialization sequence:
Log output N/A -- Sentry not outputting any debug information related to the user info. can provide if relevant. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @chrisdalke! You should be fine if you call |
Beta Was this translation helpful? Give feedback.
-
Amazing, thanks, that worked. I hadn't tried this yet because I read this issue, #96, which incorrectly made me think that the |
Beta Was this translation helpful? Give feedback.
Hi @chrisdalke! You should be fine if you call
sentry_set_user()
aftersentry_init()
. As a general rule, I recommend only configuring your options using thesentry_options_*
API before callingsentry_init()
and continuing with all other interfaces afterward.