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(processor): Use project retention to limit event timestamps #3958

Merged
merged 4 commits into from
Aug 29, 2024

Conversation

jan-auer
Copy link
Member

@jan-auer jan-auer commented Aug 28, 2024

Relay validates that event timestamps are within the most recent 30 days. This number was originally derived from event retention settings, which could be set to 30 days or 90 days on Sentry side. To ensure that events are never older than their maximum retention, which would cause them to get lost, Relay assumed the lower of these two numbers.

This PR uses the actual event retention setting for this normalization. Therefore, if an organization has the default of 90 days, all timestamps from the last 90 days will be accepted.

Fixes #2703

@iambriccardo iambriccardo marked this pull request as ready for review August 28, 2024 13:52
@iambriccardo iambriccardo requested a review from a team as a code owner August 28, 2024 13:52
Copy link
Member

@jjbayer jjbayer left a comment

Choose a reason for hiding this comment

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

An explicit test case for the changed behavior might be nice (for example a kafkaless integration test).

Don't forget to describe in the changelog that the max_secs_in_past config variable is now ignored.

@iambriccardo iambriccardo merged commit c864280 into master Aug 29, 2024
24 checks passed
@iambriccardo iambriccardo deleted the fix/max-past-retention branch August 29, 2024 07:30
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.

Flexible Event Backdating Threshold
3 participants