Skip to content

Allow passing arbitrary event types to the rate limiter#1831

Merged
cleptric merged 2 commits into
masterfrom
more-flexible-rate-limiter
May 12, 2025
Merged

Allow passing arbitrary event types to the rate limiter#1831
cleptric merged 2 commits into
masterfrom
more-flexible-rate-limiter

Conversation

@stayallive
Copy link
Copy Markdown
Collaborator

This allows us to re-use the rate limiter in: getsentry/sentry-php-agent#16

Since we already store arbitrary rate-limits anyway it makes sense we can also check for them instead of only the ones we have defined in our event type enum.

With PHP's type juggling this might not be a breaking change unless strict_types is defined. Unsure if we can make this change. Nevermind, we can remove any breaking concern by just doing what I've done in now 👍

@stayallive stayallive requested a review from cleptric May 6, 2025 15:04
@stayallive stayallive self-assigned this May 6, 2025
@cleptric cleptric merged commit f9acbce into master May 12, 2025
37 checks passed
@cleptric cleptric deleted the more-flexible-rate-limiter branch May 12, 2025 06:25
@stayallive stayallive restored the more-flexible-rate-limiter branch May 15, 2025 13:26
@stayallive stayallive deleted the more-flexible-rate-limiter branch May 15, 2025 13:27
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.

2 participants