-
Notifications
You must be signed in to change notification settings - Fork 255
Closed
Milestone
Description
Description/Screenshot
The problem i observed is that either automatic route tracking or explicit trackPageView does not reset maxAjaxCallsPerView and afters some time App Insights throws an exception that app exceeded limit.
Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.
Steps to Reproduce
maxAjaxCallsPerViewset to 10enableAutoRouteTrackingset to true- Two routes set, with components that fetches a request, with trackPageView in useEffect (without deps) on each of them.
- 5 consecutive toggles between pages results in exception that Maximum ajax per page limit reached.
- OS/Browser: OSX
- React Version: 18.2.0
- React Router: 6.21
- AppInsights React Js: 18.3.6
- AppInsights Web: 3.3.6
Expected behavior
I would expect that maxAjaxCallsPerView resets each route change.
Copilot