Skip to content

Add configurable rate limiting for sentry events#183

Merged
TheJokr merged 1 commit intomainfrom
lblocher/sentry-rate-limit
Mar 26, 2026
Merged

Add configurable rate limiting for sentry events#183
TheJokr merged 1 commit intomainfrom
lblocher/sentry-rate-limit

Conversation

@TheJokr
Copy link
Copy Markdown
Collaborator

@TheJokr TheJokr commented Mar 25, 2026

The install_hook method is replaced by install_hook_with_settings so users can express their rate limiting settings. The default is no rate limiting at all, which means the hook behaves the same as before. install_hook uses those defaults, but is marked deprecated to encourage users to supply explicit settings.

The rate limit is applied per-fingerprint. If the event does not have an explicit fingerprint, we fall back to the event's message, exception value, exception type, or level in that order.

@TheJokr TheJokr force-pushed the lblocher/sentry-rate-limit branch from 8521019 to 8706670 Compare March 25, 2026 13:25
@TheJokr TheJokr requested a review from fisherdarling March 25, 2026 13:26
@TheJokr TheJokr self-assigned this Mar 25, 2026
@TheJokr TheJokr force-pushed the lblocher/sentry-rate-limit branch from 8706670 to 7f902b1 Compare March 26, 2026 17:46
@TheJokr TheJokr merged commit 85d0c8c into main Mar 26, 2026
20 checks passed
@TheJokr TheJokr deleted the lblocher/sentry-rate-limit branch March 26, 2026 18:00
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