Splunk AppDynamics

How to disable EUM dynamically?

Michal_Drabikow
Engager

Hello,

Is there any way to disable EUM dynamically without refreshing the page?

Ex. user logs into the SPA application, but he changes his privacy settings and we need to disable AppDynamics totally on the browser side. Is that possible?

We are injecting AppDynamics with SPA2 (https://docs.appdynamics.com/display/PRO45/SPA2+Monitoring).

Thank you in advance for your help.

Labels (1)
Tags (1)

Steven_Colliton
Explorer

Hi Michal,

You might be able to use this?

https://docs.appdynamics.com/display/PRO45/Disable+Browser+Monitoring+Programmatically

You could possibly program your privacy setting to modify this value as needed.

Tags (4)
0 Karma

Michal_Drabikow
Engager

Hi Steven, thank you for your quick help.

The link that you have provided says, that the snippet "window["adrum-disable"] = true", should be placed before adrum script has been loaded.

I need to disable EUM after it has been loaded. 

Thank you,

M

0 Karma

Steven_Colliton
Explorer

Hi Michal,

I don't believe there would be a way without reloading the page and setting that value to false. Much like if you were to try to do the same thing with Google Analytics... It requires a reload of the page to change the gtag value.

https://stackoverflow.com/questions/59933351/unload-remove-disable-google-analytics-dynamically-with...

I know that doesn't fix your issue but since this is a SPA and it is loading the agent when the user uses the site I don't know if there would be a solution without a page reload to disable.

The only thing I can think off the top of my head is maybe doing something like reloading just that portion of the HTML or whatever.  Kinda like these examples:

https://stackoverflow.com/questions/17886578/refresh-part-of-page-div

https://stackoverflow.com/questions/42929562/reload-part-of-html-without-refreshing-page

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Mastering Threat Intelligence in ES 8.5, Splunk AI Assistant v2, and More from Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...

Break the Build: Inside the KubeDoom Lounge at .conf26

    You step up to the machine. The pixelated corridors of a certain 1993 FPS load in front of you, EMP Pulse ...

Splunk Auto Ingestion Parallel Pipeline Scaling

Why this feature matters Many Splunk environments experience ingestion pressure long before the host is fully ...