RUM Error Collection Methods
- JS Errors: The Blue Triangle RUM Tag collects basic JavaScript errors through the global “onerror” event listener. Information on this can be found at https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror.
- CSP Violations: The CSP errors are collected through SecurityPolicyViolationEvent (https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent). Any time a CSP error occurs, that event is triggered.
- XHR and Fetch Errors: The XHR/fetch errors are collected whenever our XHR/fetch wrappers detect anything greater than a 400 HTTP status code and reports them back to Blue Triangle’s error collection system in the cloud.
Synthetic Error Collection
Errors in synthetic are parsed straight from the console.
Comments
0 comments
Please sign in to leave a comment.