Once you create a feature flag, you can create feature flag targeting rules that target individual user IDs (user keys), but you can also use segments.
Segments are lists of user IDs. On your feature flag Definition tab, you can create targeting rules that assign treatments to segments.
This article shows how to target Standard segments and Large segments in your individual targeting rules and in attribute based targeting rules.
Tip: If you don't see a segment appear when you type its name in the segment input field, it may be that the segment is not defined for the given Split environment.
Server-side SDK support for Large segments
Server-side SDKs do not yet support Large segments, but soon will. Until they are supported, evaluations of feature flags that target Large segments will return control
on server-side SDKs.
Individual targeting rules
You can target segments in individual targeting rules. These rules assign a treatment to the segment. In the following example, the feature flag will serve on to all user IDs in the given segments.
After you select a segment, you can see the segment type indicated by the input pill icon in the To segments field.
Attribute based targeting rules
You can also target Standard segments and Large segments in attribute based targeting rules. The following example is equivalent to the individual targeting rule shown above.
You can also use percentage distribution to randomly distribute treatments among the user IDs in a segment, as shown below.
See Targeting rules for more information on feature flag targeting, percentage distribution, and rules' evaluation order.
Comments
0 comments
Please sign in to leave a comment.