Description
This issue is to discuss/track, which beforeXyz
options we want to add to Mobile SDKs for Session Replay (if any).
Background
We currently provide a few beforeXyz
options that users can use to adapt specific behaviours. From the docs:
beforeAddRecordingEvent
: Filter additional recording events that include console logs and network requests/responses.beforeErrorSampling
: Filter error events which should be skipped for error sampling. Return false if error sampling should be skipped for this error event, or true to sample for this error. Will only be called in buffer mode.
For Mobile, we identified a few options we think might be valuable to add to support more varied use cases. Note that none of these are implemented and no alignment on naming, signature, etc. has happened until now:
onRenderedScreenshot
: called after taking, before masking screenshot; e.g. remove screenshot, write to disk for debugging, add timestamp (draft PR we use for debugging)onMaskedScreenshot
: called after masking screenshot; e.g. remove screenshot, write to disk for debugging (draft PR we use for debugging)onEncodedVideoSegment
: called after a video segment has been generated from previously taken frames (could solve the request of Locally export session replay during development sentry-cocoa#4835)beforeCaptureSessionReplay
: called before Replay is captured; e.g. don't capture Replays for specific users, screens, feature flags, app states (requested by user in Add a before hook to session replay sentry-cocoa#4834)beforeSendSessionReplay
: called before Replay is sent; e.g. remove replay that's too long/short, don't send for specific user (requested by user in Add a before hook to session replay sentry-cocoa#4834)
Sub-issues
Metadata
Metadata
Assignees
Type
Projects
Status
Needs Discussion
Status
Waiting for: Product Owner