diff --git a/content/en/real_user_monitoring/guide/best-practices-for-rum-sampling.md b/content/en/real_user_monitoring/guide/best-practices-for-rum-sampling.md index e62ab4f30ce..75a6c4b2dce 100644 --- a/content/en/real_user_monitoring/guide/best-practices-for-rum-sampling.md +++ b/content/en/real_user_monitoring/guide/best-practices-for-rum-sampling.md @@ -72,11 +72,17 @@ Configuring sampling based on specific attributes, such as sampling 100% of sess ### 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. -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. -**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 @@ -97,4 +103,5 @@ During live outages, incidents, or bug investigations, you can increase sampling [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 \ No newline at end of file +[16]: /real_user_monitoring/platform/generate_metrics +[17]: /real_user_monitoring/application_monitoring/browser/setup/server/ \ No newline at end of file diff --git a/static/images/real_user_monitoring/browser/browser-change-sampling.png b/static/images/real_user_monitoring/browser/browser-change-sampling.png new file mode 100644 index 00000000000..897654c8023 Binary files /dev/null and b/static/images/real_user_monitoring/browser/browser-change-sampling.png differ