-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
'cancelled' http.client spans due to Xhr responses being falsely reported as requests #4427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I wonder if it makes sense and is possible to somehow track the requests that happen before Vue routing? After all, the transaction is 'pageload' so I think it should track everything from the moment user opens the page, not just after Vue routing has started? |
I just found out many events on my app were missed because my app failed to properly wait for Vue |
#4531 will also help further address this, but if there's anything else that comes up, please let us know! |
Uh oh!
There was an error while loading. Please reload this page.
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)@sentry/vue
,@sentry/tracing
Version:
Description
http.client spans get marked as 'cancelled' due to Xhr responses being falsely reported as requests.
Setup:
vueRouterInstrumentation
Actual result:
Consequently, these spans never receive any further update and eventually get marked as 'cancelled'
Expected result:
Troubleshooting:
http.client
spanhttp.client
spanhttp.client
span is not properly initialized. Then, in the second call,handlerData.xhr.__sentry_xhr_span_id__
is not available, so the xhr request completion is mistaken as a new request creation.Possible fix
if (handlerData.endTimestamp && !handlerData.xhr.__sentry_xhr_span_id__) return;
?Update 1
fetch
also has the similar issueThe text was updated successfully, but these errors were encountered: