-
Hi! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @vrshgv, this happens because the initial metrics call is sent after 2 seconds. In the latest beta release of the JavaScript SDK ( I think a better solution for this would be for the SDK to expose a |
Beta Was this translation helpful? Give feedback.
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 calledmetricsIntervalInitial
. 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