C++ Server-Side SDK
LaunchDarkly SDK
|
#include <prereq_event_recorder.hpp>
This class is meant only to record direct prerequisites of a flag. That is, although it will be passed events for all prerequisites seen during an evaluation via SendAsync, it will only store those that are a direct prerequisite of the parent flag passed in the constructor.
As a future improvement, it would be possible to unify the EventScope mechanism currently used by the Evaluator to send events with a class similar to this one, or to refactor the Evaluator to include prerequisite information in the returned EvaluationDetail (or a new Result class, which would be a composite of the EvaluationDetail and a vector of prerequisites.)