getFeatureFlagPayload doesn't trigger $feature_flag_called
Version
4.10.0
Steps to Reproduce
When getting feature flag payload data, these calls don't show up in posthog dashboard
I had to add this extra call to make the data show up
extension on Posthog {
Future<String> getStringPayload(String key) {
getFeatureFlag(key); // trigger $feature_flag_called
return getFeatureFlagPayload(key).then((x) => x.toString());
}
}
Expected Result
my expectation is that if I fetch the payload it should show up in dashboards
Actual Result
xxxxxx
Hello @lukepighetti Is that on Android or iOS, or both?
Ok both, I asked the @PostHog/team-feature-flags first.
@marandaneto yeah, looks like the flutter library isn't emitting the event in this scenario the same way that the other client SDKs do.
@marandaneto yeah, looks like the flutter library isn't emitting the event in this scenario the same way that the other client SDKs do.
no other client captures an event for getFeatureFLagPayload, only for getFeatureFlag and isFeatureEnabled, the reason I'm not aware of but what I recall is that we don't expect people to call getFeatureFLagPayload directly before calling getFeatureFlag or isFeatureEnabled, so I guess the reason was just to not capture duplicated events?