You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using sentry_set_user but no users show up in dashboards #911
My interpretation based on the docs is that this should create a unique user for this user, at least until their IP address changes. However, I get 0 users in the various surfaces in the dashboard that deal with user related stuff. Sessions work just fine, but no user information.
changed the title [-]Using `sentry_set_user` but not users show up in dashboards[/-][+]Using `sentry_set_user` but no users show up in dashboards[/+]on Nov 28, 2023
Thanks for the report, @connorjclark. The API usage is okay, and I expect events to be shown with an IP address representing users and counting them accordingly.
Can someone look at the events(@kahest, @markushi, @Swatinem)? There is a DSN in the referenced "context". Could this be PII settings related?
@connorjclark do you have storing of IP addresses enabled for the project on sentry.io? See the docs:
To opt out of storing users' IP addresses in your event data, you can go to your project settings, click on "Security & Privacy", and enable "Prevent Storing of IP Addresses"
This setting is used on the backend to determine whether IP addresses should be resolved and stored for incoming events where ip_address is set to {{auto}}.
Prevent Storing of IP Addresses
Preventing IP addresses from being stored for new events
I naively thought this would scrub the PII from the individual events/any long term data storage, but retain a unique identifier for purposes of user counting. I've turned it off now, hopefully I'll start to see user counts soon.
I'm concerned that sentry is only getting user information for error events, but not getting a signal for when a user launches a program - no error happens - they close it. Is that a different API?
Note, sessions track just fine. I see a graph of relative usage for each release over time.
Thanks, @kahest. Can I ask for further clarification? Since the page is part of the "common" docs and should be the same for all SDKs, I don't understand whether this is an undocumented requirement of the API (i.e., "Each of these is optional, but one must be present for the Sentry SDK to capture the user" is not entirely accurate) or whether the Native SDK could/should set the value of the ip_address as its session's distinct_id? Would the backend understand that?
Activity
[-]Using `sentry_set_user` but not users show up in dashboards[/-][+]Using `sentry_set_user` but no users show up in dashboards[/+]supervacuus commentedon Nov 28, 2023
Thanks for the report, @connorjclark. The API usage is okay, and I expect events to be shown with an IP address representing users and counting them accordingly.
Can someone look at the events(@kahest, @markushi, @Swatinem)? There is a DSN in the referenced "context". Could this be PII settings related?
kahest commentedon Nov 29, 2023
@connorjclark do you have storing of IP addresses enabled for the project on sentry.io? See the docs:
This setting is used on the backend to determine whether IP addresses should be resolved and stored for incoming events where
ip_addressis set to{{auto}}.connorjclark commentedon Nov 29, 2023
Yes, that was on.
I naively thought this would scrub the PII from the individual events/any long term data storage, but retain a unique identifier for purposes of user counting. I've turned it off now, hopefully I'll start to see user counts soon.
kahest commentedon Nov 29, 2023
@connorjclark got it, please let us know if that solved your issue. This is something we could communicate on the docs more clearly I feel.
connorjclark commentedon Nov 29, 2023
I'm seeing user / ip information on individual error events, so that is working.
Should I be seeing user count information on views such as https://zeldaclassic.sentry.io/releases/?display=users&project=6563738&sort=date ? I can't seem to find any view into how many users (active or otherwise) a particular release has (or all releases in total), which is really what I'm after. Do I need to wait for a certain critical threshold for a graph to show here?
I'm concerned that sentry is only getting user information for error events, but not getting a signal for when a user launches a program - no error happens - they close it. Is that a different API?
Note, sessions track just fine. I see a graph of relative usage for each release over time.
kahest commentedon Dec 1, 2023
@connorjclark thanks for reporting back - this should work, we'll need to investigate
kahest commentedon Dec 4, 2023
@connorjclark for User stats in Release Health, at least one of
id,emailorusernameof the user need to be set:sentry-native/src/sentry_session.c
Lines 307 to 316 in d88cd76
Apologies for the confusion, I see that this is not clearly communicated in the docs and we'll look to improve this.
supervacuus commentedon Dec 4, 2023
Thanks, @kahest. Can I ask for further clarification? Since the page is part of the "common" docs and should be the same for all SDKs, I don't understand whether this is an undocumented requirement of the API (i.e., "Each of these is optional, but one must be present for the Sentry SDK to capture the user" is not entirely accurate) or whether the Native SDK could/should set the value of the
ip_addressas its session'sdistinct_id? Would the backend understand that?kahest commentedon Dec 5, 2023
@supervacuus yep I'm clarifying this internally and will follow up with docs updates and GH issues if necessary