Skip to content

Conversation

Dav1dde
Copy link
Member

@Dav1dde Dav1dde commented Jul 22, 2025

Propagates and enforces span rate limits for transactions in the fast path and vice versa.

This only implements the enforcement in the fast path and propagation, it does not implement the enforcement side for consistent rate limits. This is a different beast to implement and currently does not touch it, this to be done in a follow up.

For motivation and justification: https://develop.sentry.dev/ingestion/relay/transaction-span-ratelimits/

Refs: #4961

@Dav1dde Dav1dde self-assigned this Jul 22, 2025
@Dav1dde Dav1dde force-pushed the dav1d/cache-inherited-rl-categories branch 2 times, most recently from 9f53b80 to f2f16f3 Compare July 22, 2025 13:50
@Dav1dde Dav1dde marked this pull request as ready for review July 22, 2025 13:50
@Dav1dde Dav1dde requested a review from a team as a code owner July 22, 2025 13:50
@Dav1dde Dav1dde force-pushed the dav1d/cache-inherited-rl-categories branch from f2f16f3 to 2d859b8 Compare July 22, 2025 13:53
Comment on lines +497 to +498
for i in 0..limit.categories.len() {
let Some(category) = limit.categories.get(i) else {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is written with a loop over the index because of iterator invalidation?

Copy link
Member Author

Choose a reason for hiding this comment

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

Correct, I cannot iterate and extend at the same time.

@Dav1dde Dav1dde added this pull request to the merge queue Jul 23, 2025
Merged via the queue into master with commit 505fb37 Jul 23, 2025
28 checks passed
@Dav1dde Dav1dde deleted the dav1d/cache-inherited-rl-categories branch July 23, 2025 06:53
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