-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Tracing for Angular is not well integrated into route navigations #3126
Comments
The issue #3134 might be contributing to the described behavior. |
This sounds like a sensible change. However, what should happen on NavigationError or NavigationCancel? |
I'm encountering the same behavior in Vue. Any chance of this topic being addressed or discussed further? |
Our route-tracing improved when we adjusted the navEnd observable in the routingInstrumentation to account for NavigationCancel and NavigationError events. (taken from here):
Maybe that should be integrated into the default Angular routingInstrumentation? Because the routing still ends when the navigation is cancelled. Otherwise the route-span just stays open. |
I would really like this to be fixed, it makes the Sentry tracing useless for tracking pageloads in Angular apps with routing :/ |
Hi everyone, I'm curious as to how much from this issue is still causing problems for folks.
I'm using the Angular(-ivy) SDKs in various test projects and hobby projects of mine and page load transactions do finish for me after a couple of seconds, when the browser idles. This is intended behaviour of our
This makes sense to me. I'll open a PR to add these events to the filter. We should finish the routing span in any case when a navigation finishes, not just in the success case. If anyone is still experiencing 24h pageload transactions, please provide a minimal reproduction (code or even better a gh repo with the reproducible behaviour) so we can look into it. Since in the meantime I'm unable to reproduce this, I'll close the issue once #8369 is merged |
Package + Version
@sentry/angular
Version:
Description
I have a feeling that the sentry tracing integration for single page apps or at least for Angular is conceptually wrong and not usable.
The following problems:
Expected behavior:
In summary a think a new transaction for each angular route navigation should be created.
Less important: pageloads and navigations would not be summed up in the same transaction, so that we have a different statistic if a page was loaded via pageload or route navigation.
We integrated tracing via the provided default routingInstrumentation.
The text was updated successfully, but these errors were encountered: