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

ref(replay): Run geo info normalization on the replay user #4088

Merged
merged 4 commits into from
Oct 1, 2024

Conversation

Dav1dde
Copy link
Member

@Dav1dde Dav1dde commented Sep 30, 2024

Fixes: getsentry/sentry#50639

Additionally refactors the normalization code a bit to bundle a lot of the arguments that are passed around in a single struct. Also updates the feature flag checks to use should_filter instead of has_feature to make it work on Proxy Relays.

@Dav1dde Dav1dde marked this pull request as ready for review September 30, 2024 13:01
@Dav1dde Dav1dde requested a review from a team as a code owner September 30, 2024 13:02
@Dav1dde Dav1dde self-assigned this Sep 30, 2024
relay-server/src/services/processor/replay.rs Outdated Show resolved Hide resolved
pub project_id: Option<ProjectId>,
pub organization_id: Option<u64>,
pub client_addr: Option<IpAddr>,
pub user_agent: RawUserAgentInfo<String>,
Copy link
Member

Choose a reason for hiding this comment

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

What does pub do on a field of a private struct?

Copy link
Member Author

Choose a reason for hiding this comment

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

Just 'documentation' that these fields can be freely accessed as opposed to stuff which should only be exposed via methods.

relay-server/src/services/processor/replay.rs Outdated Show resolved Hide resolved
@Dav1dde Dav1dde enabled auto-merge (squash) October 1, 2024 07:45
@Dav1dde Dav1dde disabled auto-merge October 1, 2024 09:24
@Dav1dde Dav1dde enabled auto-merge (squash) October 1, 2024 09:49
@Dav1dde Dav1dde merged commit bfb4a4a into master Oct 1, 2024
23 checks passed
@Dav1dde Dav1dde deleted the dav1d/replay-geo branch October 1, 2024 10:02
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.

Make geolocation tags searchable in Replays
3 participants