sentry-native: Extras, user and release informations not showing up when using Native SDK
Important Details
How are you running Sentry?
- On-Premise docker [Version xyz]
- Saas (sentry.io)
- Other [briefly describe your environment]
Description
We were successful in building the SDK for macOS with the crashpad integration and we have successfully configured it so when it crashes we do see the event in the dashboard.
Crash is generated as followed:
int* a = nullptr;
*a = 1;
However, it seems that we cannot get some information to show on the “event” such as the user, the release and some extras.
Here is how we use it :
sentry_value_t user = sentry_value_new_object();
sentry_value_set_by_key(user, "id", sentry_value_new_int32(123456789));
sentry_value_set_by_key(
user, "username", sentry_value_new_string("John Doe"));
sentry_set_user(user);
sentry_set_extra(
"bitrate", sentry_value_new_int32(g_StartupOption.bitrate));
sentry_options_set_release(options, "1.0.0");
However, we did manage to add attachments which are working well. I hope you’ll be able to enlighten us on what we are doing wrong or what we misunderstood.
What you expected to happen
We should see the release in the event as well as user info and all extras.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 24 (10 by maintainers)
Commits related to this issue
- fix: Flush scopes at least once. Fixes #84 — committed to getsentry/sentry-native by mitsuhiko 5 years ago
- fix: Flush scopes at least once. Fixes #84 (#101) — committed to getsentry/sentry-native by mitsuhiko 5 years ago
Any news on that ?
We are starting to deploy our version with the SDK but the missing release is a bit of an handicap right now.