Skip to content
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

Telemetry not cached during network disconnects #19

Open
ctenden opened this issue Jun 23, 2017 · 3 comments
Open

Telemetry not cached during network disconnects #19

ctenden opened this issue Jun 23, 2017 · 3 comments

Comments

@ctenden
Copy link

ctenden commented Jun 23, 2017

Tracking of telemetry appears to be lost if TRACK POST is performed while network is down.

Reproduction Steps:
With Network On
Perform a trackEvent
Wait for TRACK POST
Perform a trackEvent
Turn off Network
Wait for TRACK POST
Turn on network
Perform a trackEvent
Wait for TRACK POST

In Insights, only trackEvent 1 and 3 are captured.

Is it possible to use navigator.online to decide whether or not to perform TRACK POST?

@MarkPieszak
Copy link
Member

Would it be easier to do this on the app-side?
Are you talking about storing things in an Collection if it's offline and sending the event when it comes back on?

@ctenden
Copy link
Author

ctenden commented Jul 2, 2017

Correct. Telemetry collected before a disconnect and during a disconnect IF the attempt is made to TRACK, is lost. Telemetry collected during a disconnect but reconnects before the TRACK is fine.

@GustavoAmerico
Copy link
Contributor

@ctenden
This behavior is caused in the original implementation, I found the file responsible for the http request, but I will not be able to implement and test it in the next days. Try opening an Issue in the repository:
https://github.com/Microsoft/ApplicationInsights-JS/blob/master/JavaScript/JavaScriptSDK/Sender.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants