Report a flag evaluation
CalladdFeatureFlagEvaluation with the flag name and the value the user got:
Choose which events carry flags
View and error events always carry flag context, because those are the two you compare most often. To attach flags to other event types as well, list them intrackFeatureFlagsForEvents:
Each event type you add makes every event of that kind slightly larger, since the flag set travels with it. Resources are usually the highest-volume event type, so add that one only if you need to compare request performance across variants.
Report flags on every route change
In a single-page application, flags often change when the user moves between areas of the app. Report them again after each route change so the new view carries the right set:Next steps
- Error Tracking: compare error rates between variants.
- Configuration: the full option list.