feat(replay): Re-sample sessions after they expire#8407
Closed
feat(replay): Re-sample sessions after they expire#8407
Conversation
Contributor
size-limit report 📦
|
billyvg
reviewed
Jun 28, 2023
Member
billyvg
left a comment
There was a problem hiding this comment.
I've only taken a quick glance at this, but the approach seems sound to me. Will have to give it a thorough read in the next day or two.
billyvg
approved these changes
Jul 3, 2023
Member
billyvg
left a comment
There was a problem hiding this comment.
How can we test this on sentry.io before merging to master?
Member
Author
|
We could release an alpha if we're not 100% certain about it! |
9bc0ee3 to
97784ed
Compare
mydea
added a commit
that referenced
this pull request
Jul 13, 2023
97784ed to
8350255
Compare
mydea
added a commit
that referenced
this pull request
Jul 13, 2023
8350255 to
c59d333
Compare
This is a PR to this feature branch: #8407 * Handle edge case where we stop multiple times (honestly no idea how this should happen, but apparently it can 😬 ) * Add some more logging for state changes We can hopefully eventually remove the `traceInternals` checks, but for now this is an easy solution for debugging in the beta....
Member
Author
|
Close in favor of #8834 |
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.
This PR changes the replay session expiry behavior fundamentally.
Old behavior
New behavior
.start()or.startBufffering()(or nothing if both sample rates are 0).This is quite a change and touches a bunch of places, and required changes to a bunch of tests. So although it's a bit hard to review, we should be very careful with this. But overall, it appears to be clearer to me anyhow what is happening.
Closes #8257
Closes #8400