feat(session-replay): upload replay envelope from the native crash daemon#1809
Draft
tustanivsky wants to merge 11 commits into
Draft
feat(session-replay): upload replay envelope from the native crash daemon#1809tustanivsky wants to merge 11 commits into
tustanivsky wants to merge 11 commits into
Conversation
|
154ce2f to
b437853
Compare
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 adds Session Replay product support to the
nativebackend. When a downstream SDK (e.g. sentry-unreal) has staged a recorded clip on disk, the crash daemon now builds areplay_videoenvelope from it and performs an upload so the clip becomes a first-class Session Replay in Sentry, linked to the crash instead of only being available as a file attachment.Key Changes
sentry__session_replay_flush_pending(): scans<database>/replays/for embedder-staged clips (areplay-<id>.jsonmetadata sidecar + its.mp4), builds thereplay_event+replay_recording+ video into areplay_videoenvelope, and hands it to the transport.trace_id, read back from<run>/__sentry-event. This makes the replay carry the same tags as the crash and correlate via the same trace.flush_pendingout-of-process, so the replay is sent in the same session as the crash (no next-launch step).replays/convention.Known Limitations
crashpad/breakpad/inproc.Related items
#skip-changelog