Configuring Your Experiment

Turning our runner-speed flag into an experiment is easy! Follow the steps below to get up and running:

  1. From the LaunchDarkly Dashboard, click on the Feature flags tab:

    Click Feature Flags

  2. Click on the runner-speed flag:

    Click Runner Speed Flag

  3. In the Default Rule section, click the experimentation icon in the right hand corner of the rule area and select Run an experiment on this rule:

    Select Run an Experiment

  4. Adding an experiment will reset the distribution percentages. Let's re-add our 33/33/34 split:

    Traffic Split

  5. Click Save changes.

    Save Experiment

  6. Now, let's attach our metric to our experiment. Click the add a metric link at the bottom right hand corner of the rule area:

    Click Add a Metric Link

  7. Select the Score Metric from the Add new metric dropdown:

    Select Score Metric

  8. The Baseline variation should should already be the correct setting, 6, which is Toggle's default running speed. Click Save experiment settings:

    Save Experiment Settings

  9. You should now see that you have one metric attached to your experiment. You can measure as many metrics as you'd like by clicking the Manage metrics button, but we'll only be recording one metric today. To start your experiment, click the Start recording button:

    Start Recording

That's it! Your experiment is now running. You should now see a metric report without any data:

Metric Report

If our experiment code were live in a production web application we would be able to reload this page and see metric data starting to populate immediately. Since we're the only ones using our application, we'll have to simulate some traffic.