Skip to content

Commit

Permalink
Update docs/reference/custom-operations/fractional-operation.md
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Beemer <[email protected]>
Signed-off-by: Cole Bailey <[email protected]>
  • Loading branch information
2 people authored and Kavindu-Dodan committed Apr 8, 2024
1 parent 5af9258 commit 38bdd26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/reference/custom-operations/fractional-operation.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ is selected.
As hashing is deterministic we can be sure to get the same result every time for the same data point.

The `fractional` operation can be added as part of a targeting definition.
The value is an array and the first element is a nested JsonLogic rule which resolves to the hash key. This rule should typically consist of a seed concatenated with a session variable to use from the evaluation context.
The value is an array and the first element is a nested JsonLogic rule which resolves to the hash key.
This rule should typically consist of a seed concatenated with a session variable to use from the evaluation context.
This value should typically be something that remains consistent for the duration of a users session (e.g. email or session ID).
The seed is typically the flagKey so that experiments running across different flags are statistically independent, however, you can also specify another seed to either align or further decouple your allocations across different feature flags or use-cases.
The other elements in the array are nested arrays with the first element representing a variant and the second being the percentage that this option is selected.
Expand Down

0 comments on commit 38bdd26

Please sign in to comment.