Skip to content

[Replay] Improve Missing Segments #6533

@JoshFerge

Description

@JoshFerge

From experimentation, here are some things we can do to improve our missing segments problem:

  • Flush more often based on the size of the buffer. if we keep requests under 64kB, we can use sendBeacon more, and overall smaller segments will be more reliable for sending. We can add an event / listener based on buffer size.
  • Don't wait to flush on initializing. Flush immediately. This should help with us missing 0 segments on replays. We can always filter out short replays query side.

Metadata

Metadata

Assignees

Labels

Package: replayIssues related to the Sentry Replay SDK

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions