diff --git a/content/en/real_user_monitoring/session_replay/mobile/setup_and_configuration.md b/content/en/real_user_monitoring/session_replay/mobile/setup_and_configuration.md index bd40fa69b6829..78e534defbc33 100644 --- a/content/en/real_user_monitoring/session_replay/mobile/setup_and_configuration.md +++ b/content/en/real_user_monitoring/session_replay/mobile/setup_and_configuration.md @@ -47,7 +47,7 @@ To set up Mobile Session Replay for Android: {{< code-block lang="kotlin" filename="Application.kt" disable_copy="false" collapsible="true" >}} val sessionReplayConfig = SessionReplayConfiguration.Builder([sampleRate]) // in case you need Material extension support - .addExtensionSupport(MaterialExtensionSupport()) + .addExtensionSupport(MaterialExtensionSupport()) .build() SessionReplay.enable(sessionReplayConfig) {{< /code-block >}} @@ -77,7 +77,9 @@ To set up Mobile Session Replay for iOS: SessionReplay.enable( with: SessionReplay.Configuration( - replaySampleRate: sampleRate + replaySampleRate: sampleRate, + // Enable the experimental SwiftUI recording + featureFlags: [.swiftui: true] ) ) {{< /code-block >}} @@ -186,7 +188,7 @@ To instrument your consolidated web and native Session Replay views for Kotlin M ## Additional configuration ### Set the sample rate for recorded sessions to appear -The sample rate is an optional parameter in the Session Replay configuration. It must be a number between 0.0 and 100.0, where 0 indicates that no replays are recorded and 100 means that all RUM sessions include a replay. If the sample rate is not specified in the configuration, the default value of 100 is applied. +The sample rate is an optional parameter in the Session Replay configuration. It must be a number between 0.0 and 100.0, where 0 indicates that no replays are recorded and 100 means that all RUM sessions include a replay. If the sample rate is not specified in the configuration, the default value of 100 is applied. This sample rate is applied in addition to the RUM sample rate. For example, if RUM uses a sample rate of 80% and Session Replay uses a sample rate of 20%, it means that out of all user sessions, 80% are included in RUM, and within those sessions, only 20% have replays. @@ -231,7 +233,7 @@ By default, Session Replay starts recording automatically. However, if you prefe val sessionReplayConfig = SessionReplayConfiguration.Builder([sampleRate]) .startRecordingImmediately(false) .build() - // Do something + // Do something SessionReplay.startRecording() SessionReplay.stopRecording() {{< /code-block >}} @@ -245,7 +247,7 @@ By default, Session Replay starts recording automatically. However, if you prefe replaySampleRate: sampleRate, startRecordingImmediately: false ) - // Do something + // Do something SessionReplay.startRecording() SessionReplay.stopRecording() {{< /code-block >}} @@ -301,4 +303,4 @@ See [Privacy Options][2]. {{< partial name="whats-next/whats-next.html" >}} [1]: /real_user_monitoring/mobile_and_tv_monitoring/web_view_tracking -[2]: /real_user_monitoring/session_replay/mobile/privacy_options \ No newline at end of file +[2]: /real_user_monitoring/session_replay/mobile/privacy_options