-
Notifications
You must be signed in to change notification settings - Fork 480
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
Feature flags don't work without starting tracking #1902
Comments
Related #1903 |
Upon inspecting the source a bit, it seems that
It doesn't seem necessary for It would also make more sense from a security perspective, as you can spoof the call and get access to feature-flags you couldn't easily otherwise get access to, by fiddling with |
For that we have conditionally triggered recordings (that also provide ~30s buffer), which are supported in our cloud and EE offerings. Also, fetching feature flags require auth token and some parts of user info that are generated once user makes initial connection (which allows us to not keep the session itself in backend state and support high concurrent traffic) and therefore has to be sent with flags request.
Well it's also possible to spoof the network request itself and gain any flags you want :) If you have any other solutions, we're happy to hear them |
Indeed, but it’s harder to spoof the location that way. It’s not much of an issue but it seems less than efficient to download and upload that ‘userInfo’ object, considering it’s server built. How do those conditionally triggered recordings work? Can you point to some documentation, please? |
@andreialecu the conditional recording allows you to trigger the capture when certain criteria are met (for example when a user visits pageA or a call to /endpointB is called). The tracker would then trigger and send the last few seconds recorded before the predefined event, then continues recording the entire session. |
Describe the issue
Feature flags don't work without starting tracking. They don't load.
If I call
.reloadFlags()
manually, the library throws:Steps to reproduce the issue
onFlagsLoad
is not called.call
tracker.reloadFlags()
see error:
Expected behavior
We're running into a bit of a chicken and egg issue. We want to enable tracking based on feature flags, but we must start tracking to get the feature flags.
It should be possible to read feature flags without starting tracking.
Screenshots
Error happens here:
OpenReplay Environment
The text was updated successfully, but these errors were encountered: