Investigate errors in your spans 🔗
In the detail view, review your span data to identify errors and other problems like long resource response times.
Splunk RUM captures all HTTP status codes and are visible for all XHR and Fetch requests in Tag Spotlight. The Endpoints Errors metric counts 5xx errors and 4xx errors. Each span in Splunk RUM contains tags. In Splunk RUM, errors are defined as a span with an attribute of:
The following definitions and examples walk through different types of errors to look for in your data.
Front-end errors 🔗
console.error(...) the error surfaces and sometimes contains a custom error message that describes the context or cause of the error.
Span ID c85a362c4667 Operation console.error TAGS: _sf_ua_browserName Safari _sf_ua_browserVersion 87.0.4280.88 _sf_ua_clientIP exampleIP _sf_ua_osName Linux app my-app component error error true error.message Uncaught TypeError: Cannot read property 'Price' of undefined error.object String location.href http://example norm.location.href http://example customerId c123 ot.status_code UNSET splunk.rumSessionId session123 splunk.rumVersion 0.0.14 splunk.scriptInstance instance123
Back-end errors and long resource response times 🔗
Back-end errors can be captured for both first-party and third-party endpoints.
Resource errors 🔗
Resource response time 🔗
Monitor the performance of endpoints with RUM to identify spikes in behavior like slow resource response.
Example span 🔗
This shows an example span for the fictitious “my-app” with a 404 error.
Span ID c85a362c4668 Operation HTTP GET TAGS: _sf_ua_browserName Chrome _sf_ua_browserVersion 87.0.4280.88 _sf_ua_osName Mac OS X _sf_ua_osVersion 10.15.7 app my-app component xml-http-request error true http.host my.app.domain.com http.method GET http.response_content_length 18 http.scheme http http.status_code 404 http.status_text Not Found http.url /api/ratings/api/fetch/STAN-1 http.user_agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 location.href my-app.comain.com/product/STAN-1 orgId org123 ot.status_code UNSET span.kind client splunk.rumSessionId session123 splunk.rumVersion 0.0.14 splunk.scriptInstance instance123