lib/dat/science/experiment.rb in dat-science-1.0.0 vs lib/dat/science/experiment.rb in dat-science-1.1.0

- old
+ new

@@ -48,18 +48,21 @@ # If the experiment is disabled or candidate behavior isn't provided the # control behavior's result will be returned immediately. def run return run_control unless candidate? && enabled? + timestamp = Time.now + if control_runs_first? control = observe_control candidate = observe_candidate else candidate = observe_candidate control = observe_control end payload = { + :timestamp => timestamp, :candidate => candidate.payload, :control => control.payload, :first => control_runs_first? ? :control : :candidate }