Goal: Port flag error tracking to React Native by including the $feature_flag_error property in $feature_flag_called events. This property exists to help debug flag evaluation failures.
The value of the property reflects any error(s) that occurred while retrieving remote evaluation results from the /flags endpoint.
Other SDKs report properties such as:
errors_while_computing_flags - Server response body JSON included errorsWhileComputingFlags=true
flag_missing - Requested flag not in API response
quota_limited - Rate/quota limit exceeded
timeout - Request timed out
connection_error - Network connectivity issue
api_error_{status} - Server error with HTTP status code (e.g., api_error_500)
unknown_error - Unexpected exceptions
Multiple relevant errors are joined with commas (e.g., errors_while_computing_flags,flag_missing).
This feature has been implemented in a number of SDKs already for reference:
Related to https://posthoghelp.zendesk.com/agent/tickets/46332
Goal: Port flag error tracking to React Native by including the
$feature_flag_errorproperty in$feature_flag_calledevents. This property exists to help debug flag evaluation failures.The value of the property reflects any error(s) that occurred while retrieving remote evaluation results from the
/flagsendpoint.Other SDKs report properties such as:
errors_while_computing_flags- Server response body JSON includederrorsWhileComputingFlags=trueflag_missing- Requested flag not in API responsequota_limited- Rate/quota limit exceededtimeout- Request timed outconnection_error- Network connectivity issueapi_error_{status}- Server error with HTTP status code (e.g.,api_error_500)unknown_error- Unexpected exceptionsMultiple relevant errors are joined with commas (e.g.,
errors_while_computing_flags,flag_missing).This feature has been implemented in a number of SDKs already for reference:
$feature_flag_errorproperty to track flag evaluation failures #2782$feature_flag_errorproperty to track flag evaluation failures posthog-python#390$feature_flag_errorproperty to$feature_flag_calledevent posthog-android#355$feature_flag_erroron$feature_flag_calledposthog-dotnet#144$feature_flag_erroron$feature_flag_calledposthog-go#142$feature_flag_erroron$feature_flag_calledposthog-php#94$feature_flag_erroron$feature_flag_calledposthog-ruby#86Related to https://posthoghelp.zendesk.com/agent/tickets/46332