Server-side feature flags are quick when they are evaluated locally. The server holds the flag rules in memory and answers without a network call. The trouble starts when some flags cannot be resolved that way. Without a signal, you pay for extra requests or serve a default, and your exposure data records the wrong reason.
PostHog server SDK 2.24.0 adds clearer signals. A flag snapshot from evaluateFlags() now includes unresolvedFlags, a list of requested flags that local evaluation could not resolve, each with a reason code. A filtered condition that local evaluation cannot check, and that does not match, now resolves locally as no match instead of falling back to the /flags endpoint. The $feature_flag_called event for an unresolved flag now reports local_evaluation_inconclusive instead of flag_missing. The SDK also logs a startup warning that names flags local evaluation can never resolve.
That last change matters for analysis. flag_missing suggests a typo or a deleted flag. local_evaluation_inconclusive says the flag exists but the rules were too complex for local checks.
Data Points to Track
$feature_flag_calledwith the$feature_flag_erroror reason valueunresolved_flag_countper request or per hourunresolved_flag_keyandreason_codelocal_evaluation_inconclusive_rateas a share of all flag checksflag_missing_rate(should drop after the upgrade)flags_endpoint_fallback_count(should fall as no-match results stay local)evaluation_latency_msfor local and remote pathssdk_versionandservice_name
Setup Steps
- Upgrade the PostHog server SDK to 2.24.0 or later in a staging service first.
- Read the startup log and write down every flag the SDK says local evaluation can never resolve.
- Capture a baseline of
flag_missingevents and/flagscalls for the 7 days before release. - Update dashboards so
local_evaluation_inconclusiveappears as its own category, not lumped in with missing flags. - Log
unresolvedFlagsfrom the snapshot in your service metrics, with the reason code. - Review the flagged rules with the owners and decide whether to simplify each one or accept the remote call.
- Release to production and compare request counts and latency with the baseline.
Actionable Insights
A falling flag_missing rate paired with a new local_evaluation_inconclusive rate is not a regression. It is the same events, now labelled correctly. Show this to anyone who monitors the old number so they do not raise a false alarm.
The startup warning gives you a ready-made to-do list. Flags that can never resolve locally cost a network call every time, so they are the best candidates for simplifying. If a rule needs data the server does not hold, such as a cohort, consider whether the rule truly needs it.
Check the change in fallback behaviour too. A condition that cannot be checked, and does not match, now returns no match locally. For most flags that is the safe result, but a user who once received a flag through the remote path might now be excluded. Compare exposure counts for your largest flags before and after, and look at users near a rollout boundary.
Finally, watch latency. Fewer /flags calls should lower the median and the tail. If they do not, the unresolved flags are probably still being requested elsewhere in your code.