Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User struct is missing fields #466

Closed
adamgsg opened this issue Aug 15, 2022 · 0 comments · Fixed by #483
Closed

User struct is missing fields #466

adamgsg opened this issue Aug 15, 2022 · 0 comments · Fixed by #483
Assignees
Milestone

Comments

@adamgsg
Copy link

adamgsg commented Aug 15, 2022

The sentry-go User struct only provides 4 fields: id, username, email, ipaddress
See https://github.com/getsentry/sentry-go/blob/master/interfaces.go#L95

However, the actual Sentry User object contains 4 additional fields: geo, name, segment, data
See https://develop.sentry.dev/sdk/event-payloads/types/#typedef-User
And https://github.com/getsentry/sentry-data-schemas/blob/main/relay/event.schema.json#L3025

We require the last field in particular (data) since it allows the tracking of arbitrary user data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants