getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
37.51k stars 4.04k forks source link

Mobile Session Replay: SDK Recording parameters and API #63248

Open bruno-garcia opened 5 months ago

bruno-garcia commented 5 months ago

This ticket defines some aspects of recording a mobile app and supporting data/context to send to Sentry: It serves to track what parameters we will need and to align between iOS and Android.

Recording parameters and Options

These parameters/options might not be public, but we'll use these to control or adjust video quality, size and recording overhead.

Let's not put this into SentryOptions directly, but create a new nested object SessionReplayOptions which contains all of these params. SentryOptions then holds a ref to this nested object (sentryOptions.setSessionReplayOptions(replayOptions)).

Public options:

Masking:

We'll redact all text input controls, WebView, labels, images (except when loaded from the bundle), custom controls by default.

Internal/Private Recording options:

brustolin commented 1 week ago

Update for iOS:

Public options

Internal/Private Recording options

and a few extra internal options to change behaviour