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(profiles): Rate limit profile chunks #4270

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

dashed
Copy link
Member

@dashed dashed commented Nov 19, 2024

Whenever we rate-limited profile chunks, we should not push the profile into the profile consumer.

I've also added/updated tests to verify this.

@dashed dashed requested review from a team November 19, 2024 20:40
@dashed dashed self-assigned this Nov 19, 2024
@dashed dashed force-pushed the alberto/profile-chunk-rate-limit branch from 4ccb39a to 0ee7861 Compare November 19, 2024 21:05
# Configure rate limiting quota that blocks all profile durations and profile chunks at org level
project_config["quotas"] = [
{
"categories": ["profile_duration", "profile_chunk"],
Copy link
Member

Choose a reason for hiding this comment

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

Would this test also pass with only "categories": ["profile_duration"]?

Copy link
Member Author

Choose a reason for hiding this comment

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

This was for completeness as this would be the quota confi we would send from getsentry: https://github.com/getsentry/getsentry/pull/15734

@dashed dashed merged commit d8afb7d into master Nov 20, 2024
23 checks passed
@dashed dashed deleted the alberto/profile-chunk-rate-limit branch November 20, 2024 17: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.

4 participants