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

fix(metrics): Extract user from metrics correctly [INGEST-1521] #1363

Merged
merged 11 commits into from
Aug 2, 2022

Conversation

untitaker
Copy link
Member

the way we determine user counts in metrics is not similar to how we do it in events. See code comments for how it's done now.

@untitaker untitaker requested a review from a team July 29, 2022 14:01
/// here: https://github.com/getsentry/sentry/blob/f621cd76da3a39836f34802ba9b35133bdfbe38b/src/sentry/event_manager.py#L790-L794
///
/// `sentry.models.eventuser.KEYWORD_MAP` determines which attributes are looked up in which order.
/// If its order is changed, this function needs to be changed.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great docs!

Copy link
Contributor

@iker-barriocanal iker-barriocanal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great docs!

relay-server/src/metrics_extraction/transactions.rs Outdated Show resolved Hide resolved
Comment on lines 570 to 571
/// `sentry.models.eventuser.KEYWORD_MAP` determines which attributes are looked up in which order.
/// If its order is changed, this function needs to be changed.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to, at some point, extract this order into the config? I think it's easier to change the config over changing the code.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we can ever change this order without breaking a ton of users to be honest.

relay-server/src/metrics_extraction/transactions.rs Outdated Show resolved Hide resolved
relay-server/src/metrics_extraction/transactions.rs Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
untitaker and others added 6 commits August 1, 2022 14:42
Co-authored-by: Iker Barriocanal <32816711+iker-barriocanal@users.noreply.github.com>
Co-authored-by: Iker Barriocanal <32816711+iker-barriocanal@users.noreply.github.com>
Co-authored-by: Iker Barriocanal <32816711+iker-barriocanal@users.noreply.github.com>
Co-authored-by: Iker Barriocanal <32816711+iker-barriocanal@users.noreply.github.com>
@untitaker untitaker merged commit c9aa643 into master Aug 2, 2022
@untitaker untitaker deleted the fix/metrics-eventuser-style branch August 2, 2022 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants