ITADN

bug(rum-angular): agent not capturing errors in navigation

#1660Opendavid-luna 创建于 2025-11-21
bug
D
david-lunacommented
The Angular integration listens for `NavigationStart` and `NavigationEnd` router events to start and end the `route-change` transaction. However this has some gaps. According https://angular.dev/guide/routing/lifecycle-and-events navigations could - be canceled by a guard. In this case it triggers `NavigationCancel` event - fail because of an invalid route or a resolver error. In this case it triggers `NavigationError` event In both cases the `NavigationEnd` event is not triggered so the RUM agent does not record possible errors and does not finish the transaction at the right time.
0 条评论