exceptionless / Exceptionless.JavaScript

Exceptionless JavaScript client
http://exceptionless.com
Apache License 2.0
59 stars 24 forks source link

Repeat send options HTTP method #74

Closed platstar closed 7 years ago

platstar commented 7 years ago

When I use exceptionless.js on my page, I found a behavior below this

request

it seems to check server health or something every 2 minutes. so it 's possible to close these requests from client side?

niemyjski commented 7 years ago

What you are seeing is part of our real time configuration happing. How this works is we do a request 5 seconds after page load (so we don't slow down your page load) and every 2 minutes if you don't submit any events (otherwise it gets the config version from the submission header). This ensures that the client always has the latest configuration (you can send down your own values and get them from within your application to do anything you want like a/b testing)

You can disable this completely by calling the following method on client.config. updateSettingsWhenIdleInterval(0); https://github.com/exceptionless/Exceptionless.JavaScript/blob/master/src/configuration/Configuration.ts#L246

If you have any questions or need any assistance please let me know.