# How to test RUM without disturbing application users.

**URL:** <https://community.dynatrace.com/t/how-to-test-rum-without-disturbing-application-users/43299>\
**Category:** Troubleshooting\
**Tags:** real-user-monitoring-classic\
**Created:** [January 17, 2024, 7:11pm UTC](https://community.dynatrace.com/t/how-to-test-rum-without-disturbing-application-users/43299 "2024-01-17T19:11:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdamPiotrowicz](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/adampiotrowicz/32/41819_2.png) [@AdamPiotrowicz](https://community.dynatrace.com/u/AdamPiotrowicz)\
**Post date:** [January 17, 2024, 7:11pm UTC](https://community.dynatrace.com/t/how-to-test-rum-without-disturbing-application-users/43299/1 "2024-01-17T19:11:29Z")

</div>

# Problem

When the RUM breaks the monitored web application, we tend to turn off the whole RUM Application / Process Group to save the end-user from misery. Then, it might be a challenge to convince ourselves to enable it back for troubleshooting purposes.

It’s possible with single client IP(s) exclusion/inclusion enabled. Still, the real client IP addresses are often not configured in Dynatrace and represent a proxy or Load balancer IP.

# The idea

The idea is to restrict the Dynatrace RUM to be enabled to a “futuristic”, unreal client IP and overcome this restriction in a single browser instance where we want to play with RUM to **[troubleshoot a breaking scenario](https://community.dynatrace.com/topic/234580)**[.](https://community.dynatrace.com/topic/234580) For example, the `8.8.8.8` IP address is a Google DNS, so there is no chance that any of the clients monitored by Dynatrace can get it. Let’s configure Dynatrace to enable RUM only for this IP and then overcome this restriction in two possible Scenarios:

1. modifying the `User-Agent` header in the browser  
or
2. sending a custom HTTP header with a fake client IP

# Requirements

- Scenario #1: the monitored website is not sensitive to modified `User-Agent` header&nbsp;(scenario #1), but this requirement is avoidable - see the note.

- Scenario #2: the network must not remove custom HTTP headers,

- Scenario #2: we must install [ModHeader browser extension](https://chromewebstore.google.com/detail/empty-title/idgpnmonknjnojddfkpgkljpfnnfcklj),

# Configuration and Usage

## Scenario #1 - Modifying the `User-Agent` header in the browser

If using the Browser Extension for RUM and/or using custom HTTP headers is/are not possible, there is another way:

1. Go to problematic RUM Application → edit `Settings` → `Capturing` → `Exclusions` → `IP address exclusions` ,

2. Add the fake client IP and flip the `These are the only IP addresses that should be monitored` flag **ON** :

3. In the browser, configure `dtHealthCheckIgnoreRestrictions` User-Agent:

The RUM injection will happen for this very browser; nevertheless, we send our real client IP that is different than the configured `8.8.8.8` .

### Note

This may not work if the web application is sensitive to non-standard User-Agents. In these cases, most likely, the page won’t load.

If that’s the case, contact Support, refer to this post, and ask for “configuring restriction ignoring” for User-Agent that is acceptable for the monitored website.

Alternatively you can use below Scenario #2.

## Scenario #2 - Sending a custom HTTP header with a fake client IP

### Configure client web browser

1. Install [ModHeader browser extension](https://chromewebstore.google.com/detail/empty-title/idgpnmonknjnojddfkpgkljpfnnfcklj) in your selected browser,

2. Configure the name of the custom HTTP request header - make sure the name is unique, and the value is != other client IPs. The&nbsp;`8.8.8.8` might be a good choice.

3. Make sure the next request contains the header in HTTP:

### Configure Dynatrace

1. Go to `Settings` → `Web and mobile monitoring` → `IP determination`

2. Go to the problematic RUM Application → edit `Settings` → `Capturing` → `Exclusions` → `IP address exclusions` ,

3. Add the fake IP configured previously and flip the `These are the only IP addresses that should be monitored` flag **ON** :

# What’s next

If this article did not help, please open a support ticket, mention that this article was used and provide the following in the ticket:

- link to related RUM application.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [January 17, 2024, 8:51pm UTC](https://community.dynatrace.com/t/how-to-test-rum-without-disturbing-application-users/43299/2 "2024-01-17T20:51:23Z")

</div>

[@Adam-Piotrowicz](https://community.dynatrace.com/user/21630),

Neat trick! Of course, I remembered immediately the episode I did with Andi, regarding strategies to deal with the situation where RUM might break an application. Check it out after 21:52, in [https://community.dynatrace.com/t5/Videos/Dynatrace-Tips-amp-Tricks-Episode-4-with-Antonio-Sousa/m-p/197150](https://community.dynatrace.com/post/197150)

Also going to link there back to this one, so we have one more trick in our sleeves 😉

---

<div class="post-metadata">

**Author:** ![AdamPiotrowicz](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/adampiotrowicz/32/41819_2.png) [@AdamPiotrowicz](https://community.dynatrace.com/u/AdamPiotrowicz)\
**Post date:** [January 19, 2024, 6:24pm UTC](https://community.dynatrace.com/t/how-to-test-rum-without-disturbing-application-users/43299/3 "2024-01-19T18:24:56Z")

</div>

[@asousa](https://community.dynatrace.com/user/6671),&nbsp;thanks for sharing - nice presentation!

---

<div class="post-metadata">

**Author:** ![prasad\_arugonda](https://avatars.discourse-cdn.com/v4/letter/p/f04885/32.png) [@prasad\_arugonda](https://community.dynatrace.com/u/prasad_arugonda)\
**Post date:** [February 21, 2024, 2:40pm UTC](https://community.dynatrace.com/t/how-to-test-rum-without-disturbing-application-users/43299/4 "2024-02-21T14:40:53Z")

</div>

Thank you for sharing this information.

If we keep&nbsp;**Real User Monitoring (RUM)** enabled, the&nbsp; **Ruxit agent** &nbsp;is injected into the web browsers of all clients.

If Ruxit remains injected, it could potentially impact the application right

---

<div class="post-metadata">

**Author:** ![AdamPiotrowicz](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/adampiotrowicz/32/41819_2.png) [@AdamPiotrowicz](https://community.dynatrace.com/u/AdamPiotrowicz)\
**Post date:** [February 21, 2024, 2:51pm UTC](https://community.dynatrace.com/t/how-to-test-rum-without-disturbing-application-users/43299/5 "2024-02-21T14:51:57Z")

</div>

[@prasad\_arugonda](https://community.dynatrace.com/user/29296)&nbsp;, if you configure below, there will be no HTML injection and nobody will get the ruxit agent module …

 ![AdamPiotrowicz_0-1708527073657.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/c/fc9c62a6dfe7f1d98e5ca7ae13bb237160763e9e.png)

Then with mentioned two tricks, you can bypass this restriction for selected browser instancies.
