Skip to content

feat: add replay as internal sub-API#8093

Open
philprime wants to merge 4 commits into
philprime/internal-api/app-startfrom
philprime/internal-api/replay
Open

feat: add replay as internal sub-API#8093
philprime wants to merge 4 commits into
philprime/internal-api/app-startfrom
philprime/internal-api/replay

Conversation

@philprime

@philprime philprime commented Jun 16, 2026

Copy link
Copy Markdown
Member

Summary

  • Add SentryInternalReplayApi as a sub-API on SentrySDK.internal.replay
  • Provides capture(), replayId, addIgnoreClasses(_:), addRedactClasses(_:), setIgnoreContainerClass(_:), setRedactContainerClass(_:), setTags(_:), and configure(breadcrumbConverter:screenshotProvider:) (Swift-only, @_spi(Private))
  • Uses dependency injection via ReplayIntegrationProvider and HubProvider protocols
  • ObjC wrapper exposes all methods except configure (SPI protocol parameters can't cross module boundary)
  • Fix: add @_spi(Private) import to envelope ObjC wrapper (pre-existing build issue)
  • Platform: iOS/tvOS only (SENTRY_TARGET_REPLAY_SUPPORTED)

#skip-changelog

Closes #8108

@philprime philprime self-assigned this Jun 16, 2026
@github-actions

github-actions Bot commented Jun 16, 2026

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

Generated by 🚫 dangerJS against bef14c7

Add integration and unit tests for SentryInternalReplayApi
covering all API methods through SentrySDK.internal.replay
and SentryObjCSDK.internal.replay.

Fix HubProviderProvider typo in SentryInternalReplayApi
(should be HubProvider, matching other internal APIs).
@philprime philprime marked this pull request as ready for review June 17, 2026 14:29
@philprime philprime added the ready-to-merge Use this label to trigger all PR workflows label Jun 17, 2026
@sentry

sentry Bot commented Jun 17, 2026

Copy link
Copy Markdown

📲 Install Builds

iOS

🔗 App Name App ID Version Configuration
SDK-Size io.sentry.sample.SDK-Size 9.17.1 (1) Release

⚙️ sentry-cocoa Build Distribution Settings

@github-actions

Copy link
Copy Markdown
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1218.98 ms 1251.95 ms 32.97 ms
Size 24.14 KiB 1.19 MiB 1.17 MiB

Baseline results on branch: philprime/internal-api/app-start

Startup times

Revision Plain With Sentry Diff
55f1f65 1219.40 ms 1252.32 ms 32.92 ms

App size

Revision Plain With Sentry Diff
55f1f65 24.14 KiB 1.19 MiB 1.16 MiB

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

Labels

ready-to-merge Use this label to trigger all PR workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant