- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a Single Page Application (SPA) written in React.
The SPA is using fetch API instead of AJAX to communicate CORS endpoints.
I am trying to add below EUM codes into my SPA, it is able to report the first page load time.
However, it is not able to capture any fetch API which I made from this page.
I can see "Configure JavaScript Agent" mentions "Monitor Fetch API calls" with a tick.
But I still cannot make it works, can anyone please advise what I have missed? Thanks.
<script charset="UTF-8" type="text/javascript">
window["adrum-use-strict-domain-cookies"] = true;
window["adrum-start-time"] = new Date().getTime();
(function(config){
config.appKey = "AD-AAB-ABF-ASU";
config.adrumExtUrlHttp = "http://cdn.appdynamics.com";
config.adrumExtUrlHttps = "https://cdn.appdynamics.com";
config.beaconUrlHttp = "http://pdx-col.eum-appdynamics.com";
config.beaconUrlHttps = "https://pdx-col.eum-appdynamics.com";
config.useHTTPSAlways = true;
config.urlCapture = {"filterURLQuery":true};
config.xd = {"enable":true};
config.resTiming = {"bufSize":200,"clearResTimingOnBeaconSend":true};
config.maxUrlLength = 512;
config.spa = {"spa2":true};
})(window["adrum-config"] || (window["adrum-config"] = {}));
</script>
<script src="//cdn.appdynamics.com/adrum/adrum-latest.js"></script>
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As checked with AppD support, the issue is due to I was dynamically injecting AppD script segments after page loaded.
It is working fine now after moving the AppD script segment before page loaded.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As checked with AppD support, the issue is due to I was dynamically injecting AppD script segments after page loaded.
It is working fine now after moving the AppD script segment before page loaded.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Kit.Zhang ,
Thank you for letting us know!
Great to hear the issue is fixed!
Best Regards,
Hiroki
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for posting to the community.
- Please share a HAR file which contains a page load and fetch API execution if it doesn't contain sensitive and personally-identifying information.
- https://community.appdynamics.com/t5/Knowledge-Base/How-do-I-create-a-HAR-File-to-troubleshoot-web-d...
- If it contains those information, you shouldn't upload such file here, so could you please check if there is an adrum post request after your fetch API request in the network tab of the DevTools? In addition, could you please confirm the adrum post request contains information of the executed fetch API ?
- Please share a debug console log. Again, if it contains sensitive and personally-identifying information, could you please check if there is any error
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear @Hiroki.Ito
An adrum post request was sent after page load, but there is no adrum post request after a fetch API request made on the same page.
Console log haven't any error, and can you advise how I can upload the output of ADRUM.dumpLog() here?
I cannot found any button for upload log/zip file.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Hiroki.Ito
Thanks for your advice. I have created a ticket with Request ID #291245. Thanks.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
