Skip to content

Commit

Permalink
RUM-7382 Add SwiftUI Feature Flag
Browse files Browse the repository at this point in the history
  • Loading branch information
maxep committed Dec 12, 2024
1 parent 5f4c7ca commit 3d6d7bd
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 >}}
Expand Down Expand Up @@ -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 >}}
Expand Down Expand Up @@ -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.

Check notice on line 191 in content/en/real_user_monitoring/session_replay/mobile/setup_and_configuration.md

View workflow job for this annotation

GitHub Actions / vale

Datadog.sentencelength

Suggestion: Try to keep your sentence length to 25 words or fewer.

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.

Expand Down Expand Up @@ -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 >}}
Expand All @@ -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 >}}
Expand Down Expand Up @@ -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
[2]: /real_user_monitoring/session_replay/mobile/privacy_options

0 comments on commit 3d6d7bd

Please sign in to comment.