AppDynamics Knowledge Base

How do I enable SPA2 monitoring for applications using auto-injection?

How do I enable SPA2 monitoring for applications using auto-injection?

Assuming you are already successfully auto-injecting the EUM JavaScript Agent, the following steps can be used to turn on SPA2 monitoring.

image.png

1. From the User Experience tab, double-click on the EUM application you'd like to enable SPA2 monitoring for. You'll be directed to the application's Browser App Dashboard. 

image.png

2. Once you are on the Dashboard, select the Configuration sub-tab at the bottom left of the window. 

image.png

3. Select the option to "Configure JavaScript Agent" (see the screenshot above).

  

4. Select the "Advanced" option.

image.png

  

5. Scroll down slightly to add the following custom configuration. 

(function(config){
    config.spa = {spa2:true};
})(window['adrum-config'] || (window['adrum-config'] = {})); 

 image.png 

6.  Scroll down and click "Save Config & Generate HTML Snippet."

image.png

At this point, your EUM application will now have the SPA2 configuration enabled for auto-injection. Please send a load of traffic to the pages that are instrumented with auto-injection until you are able to see the configuration update.

Labels (1)
Version history
Last update:
‎08-15-2018 08:55 AM
Updated by: