Splunk AppDynamics

AppDynamics interfering with Angular Change Detection?

CommunityUser
Splunk Employee
Splunk Employee
Hello everybody,
I have a problem regarding the usage of an external Angular (v5) app (InDom) in an environment where AppDynamics (adrum.js) is present.
 
Problem: the app does generally work but the view update does not. Doing that programmatically (with this.changeDetectorRef.markForCheck() in a setInteval function) does work.
 
Why does AppDynamics interfere with the Angular Change Detection?
 
When I block the loading of AppDynamics via the network panel in the developer tool of Chrome everything works like a charm.
Labels (1)
0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Any updates on this (please see message from Mario)? Since this is a production blocker I really would appreciate any help. Anything else we can do, e.g. providing more information?

0 Karma

Gaurav_Soni
Contributor
HI Fabian,

I would suggest you to use latest js agent (https://cdn.appdynamics.com/adrum/adrum-latest.js). This will require the EUM server to be on matching JS agent version (>=4.5.x).
Then instrument application and turn on the SPA2 as suggested here.
https://docs.appdynamics.com/display/PRO44/SPA2+Monitoring

If you don't see it working, attach the HAR file for the request.
https://community.appdynamics.com/t5/Knowledge-Base/Create-a-HAR-File-to-Troubleshoot-Web-Download-I...

Regards,
Gaurav
0 Karma

Gaurav_Soni
Contributor
Hi Fabian,

We do not support Angular v5 Out Of The Box. To report Angular v5 events you have to use JS Agent API as described here: https://docs.appdynamics.com/display/PRO44/Manually+Report+Events+with+the+JavaScript+API

I would like to understand how you are instrumenting your application and reporting events.

Regards,
Gaurav Soni
0 Karma

Chitra_Lal
Contributor

Hi Fabian,

That's a known limitation;Are you using Angular Zone? We have some imcompatibility with the change detection mechanism in Angular apps. 

When moving adrum.js in the <head> blocks the Nested HTTP Test which is why the Angular change detection doesn't kick in properly, when Adrum is included alongside. So you need to go with the workaround.

Thank You,

Chitra

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Dear Chitra,

thanks for the quick response.

Further questions: is there any bug ticket you can refer to? We would like to track the state / further progress on this.

Acutally I didn't quite get the workaround. Could you please again describe what to do in order to "fix" this issue?

Actually our Angular app runs in other applications / web sites (InDom integrated) so we do not have any control about the adrum integration at all. Our application itself does not use AppDynamics, but one of the integrators does (which crashes the application).

Our requirement is that the use of AppDynamics does not interfere / crash the Angular application. 

Thanks in advance.

0 Karma
Get Updates on the Splunk Community!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Splunk Observability Synthetic Monitoring - Resolved Incident on Detector Alerts

We’ve discovered a bug that affected the auto-clear of Synthetic Detectors in the Splunk Synthetic Monitoring ...

Video | Tom’s Smartness Journey Continues

Remember Splunk Community member Tom Kopchak? If you caught the first episode of our Smartness interview ...