Closed jdudleyie closed 1 year ago
I would expect/hope that as long as there are AJAX requests being made, SDK would continue to send the data.
Yes, so would we.
Is it possible that it stops due to user inactivity?
No, the only way that the Ajax should be stopped getting recorded woudl be that the SDK has been either unloaded or the page restarted. Or with the new v3.x you can "disable" on the fly by changing the configuration to disable the elements.
I think this is the key bit of data
Due to a SignalR connection, the react app triggers AJAX requests every 10 seconds or so, requesting new data which is populated in the page
By default, there is a configuration maxAjaxCallsPerView
which is set to 500, I suspect that you are hitting this limit (you can change limit) and if you set to -1
it disables this limit.
Thank you - this makes sense - this is most likely the reason then - I will try this out.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Description/Screenshot
I am finding that Application Insights SDK stops calling the track endpoint and hence stops sending AJAX dependency call information after 15 to 30 minutes.
Steps to Reproduce
Hence if the browser is open for e.g. 2 hours am missing all of this AJAX dependency call data for at least 1.5 hours
appInsights.ts
app.tsx
Expected behavior
I would expect/hope that as long as there are AJAX requests being made, SDK would continue to send the data.
Is it possible that it stops due to user inactivity? Our users do often leave the page open for hours at a time without interacting with it as they are mainly looking at the data which is updating in realtime.
Additional context Add any other context about the problem here.