Skip to content

Commit 1608a30

Browse files
committed
fix: Update reason documentation with inExperiment value
1 parent 5a1adbb commit 1608a30

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ldclient/evaluation.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ def reason(self) -> dict:
5454
* ``errorKind``: further describes the nature of the error if the kind was ``ERROR``,
5555
e.g. ``"FLAG_NOT_FOUND"``
5656
57+
* ``inExperiment``: True if the evaluation was part of an experiment. This is set when
58+
the evaluation resulted in the context being assigned to a variation that is part of a
59+
running experiment. This property is used by LaunchDarkly's Experimentation product to
60+
track experiment assignment events.
61+
5762
* ``bigSegmentsStatus``: describes the validity of Big Segment information, if and only if
5863
the flag evaluation required querying at least one Big Segment; otherwise it returns None.
5964
Allowable values are defined in :class:`BigSegmentsStatus`. For more information, read the

0 commit comments

Comments
 (0)