Skip to content

Conversation

@Dav1dde
Copy link
Member

@Dav1dde Dav1dde commented Nov 5, 2025

Closes: #5071
Closes: RELAY-150

See linked issue for details, when the context should be dropped.

The entire thing is best effort (rate limits permanently change and the entire operation is order dependent), so checking cached rate limits should suffice.

Open questions: The issue mentions profile chunks but what about not chunked profiles? I tried to handle this (somewhat) by not checking the rate limit category for profiles and by skipping the removal if there is a profile in the same envelope.

@Dav1dde Dav1dde requested a review from a team as a code owner November 5, 2025 14:58
@Dav1dde Dav1dde force-pushed the dav1d/drop-profile-ctx-on-rate-limit branch from 1d5350f to 5a3367d Compare November 5, 2025 14:59
ctx.project_info,
);
profile::transfer_id(&mut event, profile_id);
profile::remove_context_if_rate_limited(&mut event, managed_envelope, ctx);
Copy link
Member

Choose a reason for hiding this comment

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

I should work faster, now I have to port this to the new transaction processor 😆 .

@linear
Copy link

linear bot commented Nov 5, 2025

@Dav1dde Dav1dde self-assigned this Nov 5, 2025
@Dav1dde Dav1dde force-pushed the dav1d/drop-profile-ctx-on-rate-limit branch from b886108 to 16dc724 Compare November 6, 2025 08:24
@Dav1dde Dav1dde enabled auto-merge November 6, 2025 09:23
@Dav1dde Dav1dde added this pull request to the merge queue Nov 6, 2025
Merged via the queue into master with commit f9df94b Nov 6, 2025
45 of 46 checks passed
@Dav1dde Dav1dde deleted the dav1d/drop-profile-ctx-on-rate-limit branch November 6, 2025 09:44
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.

Strip Profile Context from Transactions When Profiling is Rate-Limited

6 participants