ref: Stops session replay if rate limiting is activated#4496
Merged
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4496 +/- ##
=============================================
+ Coverage 91.439% 91.462% +0.022%
=============================================
Files 616 615 -1
Lines 68794 68976 +182
Branches 24677 24755 +78
=============================================
+ Hits 62905 63087 +182
- Misses 5796 5797 +1
+ Partials 93 92 -1
... and 14 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Contributor
Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 1223af7 | 1212.84 ms | 1227.49 ms | 14.65 ms |
| b1b7d72 | 1246.31 ms | 1261.00 ms | 14.69 ms |
| f715499 | 1234.26 ms | 1259.40 ms | 25.14 ms |
| 676e429 | 1225.76 ms | 1235.49 ms | 9.73 ms |
| 1656cf6 | 1229.59 ms | 1245.52 ms | 15.93 ms |
| 48e8c2e | 1226.45 ms | 1246.85 ms | 20.41 ms |
| 46c6025 | 1213.87 ms | 1253.06 ms | 39.19 ms |
| 59c1b97 | 1230.70 ms | 1257.12 ms | 26.42 ms |
| 270b57d | 1220.08 ms | 1240.06 ms | 19.98 ms |
| ee3f02e | 1236.53 ms | 1263.54 ms | 27.01 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 1223af7 | 21.90 KiB | 726.19 KiB | 704.29 KiB |
| b1b7d72 | 20.76 KiB | 436.33 KiB | 415.57 KiB |
| f715499 | 20.76 KiB | 427.23 KiB | 406.47 KiB |
| 676e429 | 21.58 KiB | 614.73 KiB | 593.15 KiB |
| 1656cf6 | 21.58 KiB | 546.19 KiB | 524.61 KiB |
| 48e8c2e | 21.58 KiB | 418.44 KiB | 396.86 KiB |
| 46c6025 | 22.85 KiB | 408.84 KiB | 385.99 KiB |
| 59c1b97 | 21.58 KiB | 547.63 KiB | 526.05 KiB |
| 270b57d | 21.58 KiB | 542.28 KiB | 520.70 KiB |
| ee3f02e | 22.84 KiB | 401.67 KiB | 378.83 KiB |
Member
philipphofmann
left a comment
There was a problem hiding this comment.
I would rather check the active rate limits than having a flag.
philipphofmann
approved these changes
Nov 6, 2024
Member
philipphofmann
left a comment
There was a problem hiding this comment.
LGTM, when adding a comment why we rate limit until the next session.
7 tasks
brustolin
commented
Nov 7, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📜 Description
Stop session replay if the app is being rate limited.
💡 Motivation and Context
https://github.com/getsentry/team-replay/issues/496
💚 How did you test it?
📝 Checklist
You have to check all boxes before merging:
sendDefaultPIIis enabled.🔮 Next steps