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

0 Canceled Xhr request

jchabot86
Frequent Guest

Is there a way to monitor for 0 Canceled xhr requests on the RUM side of Dynatrace?

These can be due to a number of reasons, but would be helpful to monitor for them.

jchabot86_0-1686765470844.png

 

1 REPLY 1

Rugiewit
Dynatrace Enthusiast
Dynatrace Enthusiast

Hey there, 
So the details of the errors you're looking at are usually errors/responses returned by the server or requests attempting to leave the browser.
An XHR that is canceled isn't really an error but usually is something on the browser level that gives up to make that request.

that being said you won't be able to monitor a request like that. It produces no error message, no response code, and sometimes canceled xhrs can occur frequently for users depending on how the web application is set up. (loading a new page in a middle of an xhr for example) so Dynatrace not capturing it makes sense.

 

That being said, if you have a very specific use case where you know an XHR is being canceled, ability to modify your own code base for the web application and want to capture it as a custom action or error, then you can probably use the RUM JavaScript library to manually make that action when it occurs or picked up by your JavaScript

https://www.dynatrace.com/support/doc/javascriptapi/interfaces/dtrum_types.DtrumApi.html

 

But again, that requires you to add the logic to check the cancel request in your javascript and then using our javascript functions to make that call.

 

Kind Regards, 

Darko

Featured Posts