Skip to content

Break(V4): Remove Session Replay#1214

Merged
lucas-zimerman merged 3 commits intov4/mainfrom
lz/remove-replay
Apr 13, 2026
Merged

Break(V4): Remove Session Replay#1214
lucas-zimerman merged 3 commits intov4/mainfrom
lz/remove-replay

Conversation

@lucas-zimerman
Copy link
Copy Markdown
Collaborator

@lucas-zimerman lucas-zimerman commented Apr 8, 2026

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Session Replay will no longer be present on the latest version of Sentry Capacitor V4..

💡 Motivation and Context

● Remove Session Replay from @sentry/capacitor

  • Remove replayIntegration from public exports
  • Remove replaysSessionSampleRate / replaysOnErrorSampleRate options and the
    CapacitorBrowserClientReplayOptions type (the Omit in CapacitorOptions/CapacitorClientOptions is kept to
    explicitly block those BrowserOptions fields)
  • Remove deprecation warning in sdk.ts
  • Remove replay ID enrichment from logEnricherIntegration
  • Remove Android native code that disabled session replay on init
  • Update example apps to remove replayIntegration, replayCanvasIntegration, and the sample rate options
  • Remove replay-related tests

💚 How did you test it?

📝 Checklist

  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing
  • No breaking changes

🔮 Next steps

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 8, 2026

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


  • Break(V4): Remove Session Replay by lucas-zimerman in #1214
  • Break(V4): Remove Session Replay by lucas-zimerman in #1214

🤖 This preview updates automatically when you update the PR.

Copy link
Copy Markdown
Contributor

@antonis antonis left a comment

Choose a reason for hiding this comment

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

LGTM

@lucas-zimerman lucas-zimerman merged commit 92027ca into v4/main Apr 13, 2026
12 of 15 checks passed
@lucas-zimerman lucas-zimerman deleted the lz/remove-replay branch April 13, 2026 15:44
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 ea4cf3d. Configure here.

attachErrorHandler: false,
attachProps: false,
},
Sentry.init({
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

replayCanvasIntegration not removed from Vue example

Medium Severity

SentryVue.replayCanvasIntegration remains in the first Sentry.init block (line 42–45) despite the PR's stated goal of removing all replay-related integrations from example apps. The PR description explicitly mentions removing replayCanvasIntegration from examples, but this instance was missed.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit ea4cf3d. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants