Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,17 @@

### Changing the sampling rate in the Datadog RUM UI

Changing the sampling rate is only supported for server-side sampling, and can be accomplished by [modifying the retention rate][15] from the retention filters page.
During live outages, incidents, or bug investigations, and for customers that are not yet on [RUM without Limits][2] you can increase client-side (head-based) sampling to collect 100% of your sessions to ensure nothing is missed, or to have more examples of a particular issue.

Check warning on line 75 in content/en/real_user_monitoring/guide/best-practices-for-rum-sampling.md

View workflow job for this annotation

GitHub Actions / vale

Datadog.words_case_insensitive

Use 'helps' or 'helps ensure' instead of 'ensure'.

Check notice on line 75 in content/en/real_user_monitoring/guide/best-practices-for-rum-sampling.md

View workflow job for this annotation

GitHub Actions / vale

Datadog.sentencelength

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

During live outages, incidents, or bug investigations, you can increase sampling to collect 100% of your sessions to ensure nothing is missed, or to have more examples of a particular issue.
You can only change the **head-based** sampling rate from the Datadog UI if you use the [**server-side injection method**][17] to add the Browser RUM SDK to your web application. To do this, [modify the sampling rate][15] on the SDK Configuration page.

Check notice on line 77 in content/en/real_user_monitoring/guide/best-practices-for-rum-sampling.md

View workflow job for this annotation

GitHub Actions / vale

Datadog.sentencelength

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we're talking about updating head-based sample rate from the RUM x remote config UI, not retention filters

Suggested change
You can only change the **head-based** sampling rate from the Datadog UI if you use the [**server-side injection method**][17] to add the Browser RUM SDK to your web application. To do this, [modify the sampling rate][15] on the SDK Configuration page.
You can only change the **head-based** sampling rate from the Datadog UI if you use the [**server-side injection method**][17] to add the Browser RUM SDK to your web application. To do this, [modify the sampling rate][17] on the SDK Configuration page.


**Note**: This behavior only applies to mobile applications using mobile RUM SDKs.
{{< img src="/real_user_monitoring/browser/browser-change-sampling.png" alt="Session Sampling and Session Replay Sampling sliders visible from the RUM SDK Configuration page." style="width:100%;" >}}

For other instrumentation methods (such as npm or CDN), to modify the **head-based** sampling rate:
- Deploy a new version of your application with an updated `sessionSampleRate` value
- Use a feature flag or remote configuration service to dynamically set the rate when the SDK initializes

To modify the **head-based** sampling rate for mobile SDKs, redeploy your application with an updated `sessionSampleRate` value.

## Further Reading

Expand All @@ -97,4 +103,5 @@
[13]: /real_user_monitoring/rum_without_limits/metrics
[14]: /real_user_monitoring/guide/retention_filter_best_practices/
[15]: /real_user_monitoring/rum_without_limits/retention_filters#modifying-filters
[16]: /real_user_monitoring/platform/generate_metrics
[16]: /real_user_monitoring/platform/generate_metrics
[17]: /real_user_monitoring/application_monitoring/browser/setup/server/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading