Skip to content

feat(session-replay): add attach_session_replay option with platform extension point#1709

Merged
tustanivsky merged 10 commits into
masterfrom
feat/session-replay-stub
May 12, 2026
Merged

feat(session-replay): add attach_session_replay option with platform extension point#1709
tustanivsky merged 10 commits into
masterfrom
feat/session-replay-stub

Conversation

@tustanivsky
Copy link
Copy Markdown
Collaborator

@tustanivsky tustanivsky commented May 8, 2026

This PR adds two new options to enable attaching a short retroactive video clip to captured crash event:

  • sentry_options_set_attach_session_replay(opts, int val) - toggle (default off)
  • sentry_options_set_session_replay_duration(opts, uint32_t) - requested window (default 5000 ms)

It mirrors the existing screenshot architecture: a public option, an internal sentry_session_replay.h interface, a no-op default impl, and an extension point so downstream SDKs (e.g. sentry-xbox using XAppCaptureRecordDiagnosticClip) can supply a real implementation.

Closes #1172

Related items:

#skip-changelog

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against fdf5f0f

@tustanivsky tustanivsky changed the title feat(replay-clip): add attach_replay_clip option with platform extension point feat(replay-clip): add attach_replay_clip option with platform extension point May 8, 2026
@tustanivsky
Copy link
Copy Markdown
Collaborator Author

tustanivsky commented May 11, 2026

Console checks are failing for the same reason as in the case with Xbox screenshot capturing (see #1704 (comment)).

@tustanivsky tustanivsky marked this pull request as ready for review May 11, 2026 05:47
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 73ce86a. Configure here.

Comment thread src/backends/sentry_backend_breakpad.cpp
Comment thread src/sentry_options.c
@jpnurmi
Copy link
Copy Markdown
Collaborator

jpnurmi commented May 11, 2026

Closes: #1172 🙂

@tustanivsky tustanivsky changed the title feat(replay-clip): add attach_replay_clip option with platform extension point feat(replay-clip): add attach_session_replay option with platform extension point May 11, 2026
@tustanivsky tustanivsky changed the title feat(replay-clip): add attach_session_replay option with platform extension point feat(session-replay): add attach_session_replay option with platform extension point May 11, 2026
Comment thread include/sentry.h Outdated
@tustanivsky tustanivsky merged commit f95daa7 into master May 12, 2026
61 of 62 checks passed
@tustanivsky tustanivsky deleted the feat/session-replay-stub branch May 12, 2026 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

video clips on Xbox dev kit

3 participants