Skip to content

Limit # of replay breadcrumbs captured per timeframe #8072

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

Closed
mydea opened this issue May 8, 2023 · 0 comments · Fixed by #8086
Closed

Limit # of replay breadcrumbs captured per timeframe #8072

mydea opened this issue May 8, 2023 · 0 comments · Fixed by #8086
Assignees
Labels
Package: replay Issues related to the Sentry Replay SDK

Comments

@mydea
Copy link
Member

mydea commented May 8, 2023

It is possible that a lot of replay breadcrumbs are captured in a short amount of time. E.g. if a page makes continuously hundreds of API requests, we will always capture them all.

We should limit this to a certain upper limit, throttling this for a given time frame.

Proposal

We allow up to 500 breadcrumbs per minute. Anything over this will be discarded. This is a moving window, meaning that a breadcrumb will stop counting towards the limit after 60s.

@mydea mydea added Type: Feature Package: replay Issues related to the Sentry Replay SDK labels May 8, 2023
@billyvg billyvg self-assigned this May 15, 2023
billyvg added a commit that referenced this issue May 26, 2023
This updates custom breadcrumb handling to be throttled to max. 300
breadcrumbs/5s.

If we exceed this amount of breadcrumbs, we drop any further breadcrumbs
and instead add a single breadcrumb with `category: 'replay.throttled'`,
which the UI can use to indicate that _something_ was dropped.

Closes #8072

---------

Co-authored-by: Billy Vong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: replay Issues related to the Sentry Replay SDK
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants