Statsig.ExperimentEvaluationOptions (statsig_elixir v0.22.0)

Options for Statsig.get_experiment/3.

  • user_persisted_values - map of config name to sticky values, as saved through Statsig.PersistentStorage. Only honored when %Statsig.Options{persistent_storage: ...} is configured. Note: when persistent storage is configured, leaving this nil tells the SDK the caller has no persisted values, and it will issue a handle_delete for the config being evaluated. Pass the loaded map (or %{} for a user with nothing stored) to keep sticky assignment active.
  • enforce_overrides - when a persisted sticky value exists, let a matching console override rule take precedence over it.
  • enforce_targeting - when a persisted sticky value exists, re-check targeting and drop the sticky value if the user no longer passes targeting.