cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Monitoring External API calls from Javascript Frontend

lt_106
Visitor

Hi Dynatrace Gurus, I have a simple html page I am testing out with a javascript embedded <script src=“liveperson.js”></script> that gets called upon page initial page load.

In turn, within liveperson.js, I make a call out to a public api https://httpbin.org/status/200.

Is there a way to create a metric of the succeess rate of the calls out to https://httpbin.org/status/200

i am using embedded RUM in my html and I see the call in view waterfall view but I cannot see a way to view the response codes/success rates of the calls.

 

Thanks!

 

3 REPLIES 3

Yosi_Neuman
DynaMight Guru
DynaMight Guru

Hi @lt_106 

Can you share please what do you see from your web application services and then the service flow?

Yosi_Neuman_0-1714722070862.png

 

dynatrace certificated professional - dynatrace master partner - Matrix Soft Ware Division - Israel

Hi @Yosi_Neuman , thank you for helping out. This is what I see in my app showing up as 0 service. Something to note is that the API I am calling out to is an external one which we don't have any control over (hence no agent running). I am calling this API on my agentless monitored app from front-end javascript.Screenshot 2024-05-06 at 10.13.53 AM.png

I see the external API domain as below but no way to check what response code it returned and monitor it as a metric:Screenshot 2024-05-06 at 10.17.56 AM.png

Hi @lt_106 

Stand corrected

I don't have a solution here beside use JS api some how 

Sorry 

Yos 

 

dynatrace certificated professional - dynatrace master partner - Matrix Soft Ware Division - Israel

Featured Posts