Skip to content

Metrics request complete #7051

Answered by ivarconr
vrshgv asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @vrshgv,

this happens because the initial metrics call is sent after 2 seconds. In the latest beta release of the JavaScript SDK (v3.4.0-beta.1) we added an option that allows you to control when the initial metrics are pushed, via the option called metricsIntervalInitial. By setting it to 1 second it might help some, but probably not be optimal for your use-case.

I think a better solution for this would be for the SDK to expose a async sendMetrics() function so that you could ensure in your application that metrics are sent, before the redirect. Feel free to open a issue request in the repository https://github.com/Unleash/unleash-proxy-client-js

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ivarconr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants