Migration Guides

Migrating from LaunchDarkly

Move your feature flags and experiments from LaunchDarkly to ConfigDirector. How projects, environments, flags, contexts, segments, and rollouts map, how to recreate the flags, how to switch the SDKs over without a risky release, and how to move experiments with their metrics and track calls.

This guide is for teams that run feature flags and experiments on LaunchDarkly and want to move them to ConfigDirector. It maps the LaunchDarkly concepts onto ConfigDirector's, walks through recreating the flags, and shows how to switch each SDK over so that both services run side by side until you remove the LaunchDarkly one. Move your experiments then maps LaunchDarkly's experiments, metrics, and results page, and shows the track calls that replace LaunchDarkly's.

If you are new to ConfigDirector, read Core Concepts first. It takes a few minutes and makes the mapping below easier to follow.

Before you start

  1. Pick one LaunchDarkly project to move first. A project with a handful of flags and one or two services is a good rehearsal. Everything below is done per project.
  2. Make a list of the flags, with their variations and targeting. LaunchDarkly has no flag export, but its REST API lists every flag in a project with its variations and a summary of the targeting in each environment: GET /api/v2/flags/{projectKey}, with ?env=production&summary=0 for the full rules of that environment, and GET /api/v2/flag-statuses/{projectKey}/{environmentKey} for each flag's status. See the LaunchDarkly API documentation. For a small project, the flag list in the LaunchDarkly dashboard is enough.
  3. Decide which flags not to move. A migration is the best moment to clean up. A flag whose status is launched or inactive in every environment serves one value and has nothing left to decide. Hardcode that value in the code instead of recreating the flag. Only active flags, and the permanent ones you still rely on, need to move.
  4. Create your ConfigDirector organization and project. Sign up, create a project, and add an environment for each LaunchDarkly environment you use. Test and Production are created for you. Mark the environments that serve real traffic as live.

How the concepts map

Projects, environments, and flags

LaunchDarklyConfigDirector
ProjectProject
EnvironmentEnvironment. A critical environment in LaunchDarkly is a live environment in ConfigDirector.
Feature flagConfig, with a role: Feature flag for a temporary boolean, Kill switch for a permanent boolean, Experiment for variations you compare, and Config for everything else.
Flag type: boolean, string, number, JSONConfig type: Boolean, String, Integer or Float, JSON. ConfigDirector also has Enum, URL, and Timespan, which validate the value as that type. A string flag with a fixed set of variations is usually an Enum.
VariationsThe values a config serves. Experiments define them as named variations; other roles enter the value in each targeting rule.
Temporary and permanent flagsThe role: a temporary boolean flag is a Feature flag and a permanent one a Kill switch, since the role decides the lifetime for every role but Config. Temporary configs are tracked through the config lifecycle, which tells you when they have settled and can be removed.
Flag keyConfig key. LaunchDarkly keys are valid ConfigDirector keys, so keep them: the code change is then only the SDK call. Unlike LaunchDarkly, a key can be renamed safely later, even in production.
Client-side SDK availability, mobile key availabilitySDK availability: client SDKs, server SDKs, or both. Client and mobile applications both use the client SDK key.
TagsTags
JSON Schema on a flag's variationsJSON Schema validation on a JSON config, on both pricing options. Changing the schema re-validates every value already set in every environment.
Flag maintainer, custom properties, flag linksNo equivalent. Put the owner in the description, or in a tag.
Archived flagArchived config. It can be restored for 30 days, and then it is purged.

Targeting

LaunchDarklyConfigDirector
Default rule (fallthrough)The default targeting rule, the last rule in every environment. Its value is served when no other rule matches.
Targeting on and off, with the off variationThere is no on/off switch above the rules. To turn a flag off for everyone, remove or reorder its rules so the default targeting rule serves the off value. For a switch that stays independent of the rules, create a Kill switch and check it first in your code.
Individual targetsA conditional rule with the condition identifier is one of the listed identifiers. Add a context.kind condition to the rule when the identifiers belong to a context kind other than user.
Rule with clausesA conditional rule with one attribute condition per clause. Every condition of a rule must match, as in LaunchDarkly. There is no OR inside a rule: write a second rule, or use a segment, whose condition groups are combined with OR.
Attribute operators: string, number, semver, date, regexAttribute conditions read a trait as text, a number, a semantic version, a datetime, an array, or a boolean, each with its own operators. There is no regular expression operator. Text conditions are case-sensitive.
Percentage rollout, bucketed by a chosen context kind and attributeA percentage rollout, on its own or as the value of a conditional rule. Contexts are assigned by their context kind and identifier. Choosing another attribute to bucket by is not available: evaluate with the entity you want to bucket by as the context instead, for example kind: "organization".
Segment, rule-based, per environmentA segment, defined once per project with one or more condition groups, used by any config in the project. An environment that needs its own definition gets an environment override.
Segment, list-basedNot yet available. Use a condition group with identifier is one of the listed identifiers; it is kept in one place and reused the same way.
PrerequisitesNot available. Put the condition the prerequisite flag expressed on the dependent flag's own rules, or check both flags in code.
Scheduled changes, approvals, guarded rolloutsNot available. Changes take effect as soon as they are saved.
Test runThe targeting rules tester, which evaluates saved or unsaved rules against a context and shows why each rule matched or not.

Contexts

LaunchDarklyConfigDirector
ContextContext
Context kind: user, organization, device, customContext kind. Leaving it out means user. Any lowercase name of up to 64 letters, digits, dashes, or underscores works.
Context keyIdentifier, id in the SDKs. A context is identified by its kind and identifier together, so user 42 and device 42 are different contexts.
Context namename
Custom attributes, such as email or planTraits, an arbitrary JSON object. Targeting rules address a trait with a JSON pointer, such as /plan or /address/country.
anonymous: trueAn anonymous context: a context given without an identifier, or with anonymous set. It is evaluated but never stored or shown in the dashboard.
Multi-context, several kinds in one evaluationNot available. Each evaluation is for one context. To target a user by their organization, copy the organization's attributes you target by into the user's traits, for example /organization/plan. Or evaluate the config a second time with the organization as the context.
Private attributesNot available. Only put the traits your targeting rules use in the context.

SDKs and delivery

LaunchDarklyConfigDirector
SDK keyServer SDK key, a secret, for server SDKs.
Client-side ID and mobile keyClient SDK key, for browser and mobile SDKs. It is not secret, because client SDKs only receive evaluated values.
Streaming by default, with polling as an optionThe same. See Architecture.
Server SDKs evaluate locallyThe same. Server SDKs receive the rules and segments and evaluate every context in memory.
Client SDKs receive evaluated valuesThe same.
Fallback value in codeThe in-code default value, passed with every read. It is returned only when the SDK cannot evaluate the config.
Flag change listenerswatch in the JavaScript SDKs, a stream or flow in the mobile SDKs, and the configsUpdated hook. Each SDK page shows them.
Bootstrapping from localStorage or the serverClient SDKs keep the last values they received on the device, in the browser's localStorage, and serve them on the next launch with the same context until live values arrive. Keeping them is on by default, with no bootstrap option to set, and the client is ready only once live values arrive. A server-rendered payload cannot be passed to the browser SDK: the Next.js and Nuxt SDKs evaluate configs during server-side rendering, so the first render carries real values.
Relay ProxyNot needed. Every SDK connects to ConfigDirector directly over streaming. A base url option is available for an HTTP proxy of your own.
Test data sourcesThe test client in each SDK's testing entry point, and the in-memory providers of the OpenFeature SDKs. See Test your code on each SDK page.
Experimentation metrics and resultsMetrics on the events your application reports with track, and results for each variation on the experiment's Experiment tab. Move your experiments shows how LaunchDarkly's experiments, metrics, and results page map, and How ConfigDirector computes results explains the method.

Recreate the flags

Create the configs in ConfigDirector while the LaunchDarkly flags keep serving your applications. Nothing changes for your users until the SDKs switch over.

For each flag you decided to move:

  1. Create a config with the same key, the role and type from the tables above, and the lifetime. Set its initial value to what LaunchDarkly serves most users in production today, so an application that reads it before its rules exist gets a safe value.
  2. Set the SDK availability to match where the flag is read.
  3. In each environment, recreate the targeting: individual targets as identifier is one of rules, rules as conditional rules, the rollout as a percentage rollout, and the fallthrough as the default targeting rule value.
  4. Check a few contexts with the targeting rules tester. The result should be the value LaunchDarkly serves them.

There are three ways to do this:

  • The dashboard, for a project with a few flags. The config form and the targeting rules editor cover everything above.
  • The Terraform provider, if your LaunchDarkly flags were managed with LaunchDarkly's Terraform provider. The ConfigDirector Terraform provider has configdirector_config for the flag and configdirector_config_targeting_rules for the rules of each environment, with the same structure as the tables above. Translate the resources once and apply.
  • The MCP server, for a project with many flags that you manage by hand. Connect the MCP server to your coding assistant, give it the flag list from the LaunchDarkly API, and ask it to create the configs and their targeting rules. Review what it created in the dashboard before switching any SDK. The configdirector-migrate-from-launchdarkly agent skill holds your agent to this guide: it has you export the flags, segments, and experiments in your own terminal, proposes which flags to move, which to hardcode, and which to leave in LaunchDarkly until their running experiment ends, creates the segments and then the configs, with an experiment for each flag that runs one, in batches you confirm, checks the rules with an evaluation, and afterwards switches an application's SDK calls over, its track calls included, as the next section and Move your experiments show.
Segments come first. Create the segments a project's rules use before the configs, and translate the LaunchDarkly segment of each environment into a project definition plus an environment override where the environments differ.

Switch the SDKs

Switch one application at a time. Pass the value LaunchDarkly serves today as the in-code default value, so that a config that is missing, or read before the client is ready, still gives the result users get now.

Server SDKs

A Node.js service reading a flag with the LaunchDarkly server SDK:

Before: LaunchDarkly
import * as LaunchDarkly from "@launchdarkly/node-server-sdk";

const ldClient = LaunchDarkly.init("YOUR-LAUNCHDARKLY-SDK-KEY");
await ldClient.waitForInitialization({ timeout: 10 });

const context = {
  kind: "user",
  key: "user-123",
  name: "Example User",
  email: "user@example.com",
  plan: "enterprise",
};

const newCheckout = await ldClient.variation("new-checkout", context, false);

The same flag with the ConfigDirector Node.js SDK. The context's custom attributes move under traits, and the key becomes id:

After: ConfigDirector
import { createClient } from "@configdirector/server-sdk";

const client = createClient("YOUR-SERVER-SDK-KEY");
await client.initialize();

const context = {
  id: "user-123",
  name: "Example User",
  traits: {
    email: "user@example.com",
    plan: "enterprise",
  },
};

const newCheckout = client.getValue("new-checkout", false, context);

A context of another kind sets kind:

const organization = { id: "acme", kind: "organization", name: "Acme Inc.", traits: { plan: "enterprise" } };

const newCheckout = client.getValue("new-checkout", false, organization);

getValue is synchronous: the server SDK evaluates the rules it already holds in memory. The type of the value is the type of the in-code default value you pass, so a string flag is read with a string default and a JSON flag with an object. The Python, Java, .NET, and Go SDKs follow the same shape.

Browser and mobile SDKs

A web application with the LaunchDarkly JavaScript client SDK:

Before: LaunchDarkly
import * as LDClient from "launchdarkly-js-client-sdk";

const ldClient = LDClient.initialize("YOUR-CLIENT-SIDE-ID", {
  kind: "user",
  key: "user-123",
  name: "Example User",
  plan: "enterprise",
});
await ldClient.waitForInitialization(5);

const newCheckout = ldClient.variation("new-checkout", false);
ldClient.on("change:new-checkout", (value) => render(value));

await ldClient.identify({ kind: "user", key: "user-456" });

The same with the ConfigDirector JavaScript SDK. The context is given to initialize, changes arrive through watch, and identify becomes updateContext:

After: ConfigDirector
import { createClient } from "@configdirector/client-sdk";

const client = createClient("YOUR-CLIENT-SDK-KEY");
await client.initialize({
  id: "user-123",
  name: "Example User",
  traits: { plan: "enterprise" },
});

const newCheckout = client.getValue("new-checkout", false);
client.watch("new-checkout", false, (value) => render(value));

await client.updateContext({ id: "user-456" });

initialize resolves when the first values arrive or after its timeout, 3 seconds by default; after a timeout the client keeps connecting in the background and, until live values arrive, reads return the values kept on the device from an earlier launch with the same context, or the in-code default value when there are none. The React, Vue, React Native, Flutter, Swift, and Android SDKs follow the same shape, with a hook, composable, stream, or flow in place of watch.

Applications on OpenFeature

If your code reads flags through OpenFeature with the LaunchDarkly provider, the code does not change: register the ConfigDirector provider instead. The targetingKey becomes the context's identifier. Attributes the ConfigDirector provider reads are kind, name, traits, and anonymous, so move the custom attributes your rules use into a traits attribute. See OpenFeature with ConfigDirector for the providers and the full mapping.

Which SDK replaces which

LaunchDarkly SDKConfigDirector SDK
JavaScript clientJavaScript
React WebReact
VueVue
React NativeReact Native
FlutterFlutter
iOSSwift
AndroidAndroid
Node.js server, Python, Java, .NET server, GoNode.js, Python, Java, .NET, Go
Next.js integrationNext.js. ConfigDirector also has a Nuxt SDK.
OpenFeature providersOpenFeature providers for the web, Swift, Android, Flutter, Node.js, Python, Java, .NET, and Go

ConfigDirector has no SDK for Ruby, PHP, Rust, C++, Erlang, Haskell, Lua, Roku, or Electron, and no edge SDKs. If you need one of them, write to sdks@configdirector.com with the SDK you are looking for and we will let you know the projected date for its release.

Move your experiments

This section is for teams that also run experiments with LaunchDarkly Experimentation. If you only move flags, skip to Verify, then remove LaunchDarkly.

The biggest change is where the results come from. ConfigDirector measures an experiment on the events your application reports to ConfigDirector with track, and shows the results on the experiment's Experiment tab. Your track calls keep their event names and change only their shape, while LaunchDarkly's page viewed and clicked or tapped metrics, which you set up in LaunchDarkly's interface, become track calls in your code. What stays the same: the flag's key and its variations, a percentage split that serves each context the same variation every time, and a context joining the experiment when your code evaluates the flag for it.

What to settle first

  1. Let the experiments running in LaunchDarkly finish there. ConfigDirector assigns variations afresh, so a context could get a different variation from the one it had, and the counts would start from zero. Keep reading a running experiment's flag with the LaunchDarkly SDK until you have read its result, and start new experiments in ConfigDirector.
  2. Decide which context is counted. LaunchDarkly assigns variations by an experiment's randomization unit, a context kind you choose. In ConfigDirector, the unit is the context kind your code evaluates the experiment with, and a context is assigned and counted by its context kind and identifier: an experiment randomized by organization is evaluated with kind: "organization" contexts. A context marked anonymous, or without an id, counts for no experiment, unlike in LaunchDarkly, where anonymous contexts can be in experiments. To count signed-out visitors, give each one an id of your own, such as one you keep in a cookie, and leave anonymous off. Give every context a stable identifier has the details, including what each SDK serves a context without an id.
  3. List the events your experiments measure. Each LaunchDarkly metric you keep becomes a metric on an event your application reports with track. Only those events need track: ConfigDirector stores up to 100,000 tracked events per environment per day, so report the outcomes your experiments compare rather than every event. See Limits.

How experiments map

LaunchDarklyConfigDirector
Experiment on a flagAn experiment: a config with the Experiment role, of type String, Integer, Float, or Boolean. Keep the flag's key as the config's key, so only the SDK call changes in your code. An experiment cannot be of type JSON: give an experiment on a JSON flag a String variation for each JSON value, and have your code turn each one into the JSON it used to read.
Experiment on an AgentControl configNot available. An experiment's variations are values your code reads, so a String experiment can name the prompt or the model each variation uses.
VariationsNamed variations. Keep LaunchDarkly's names, since the dashboard, the audit log, the CLI, and OpenFeature refer to a variation by its name. A Boolean experiment starts with Enabled and Disabled, which you can rename on the Settings tab.
A/A testNot available as a setting. Give the experiment two variations with different values, such as a1 and a2, that your code treats the same.
Control variationThe control: the variation the default targeting rule serves when the run starts. Pick LaunchDarkly's control as the Default variation when you create the experiment. See The control.
Randomization unitThe context kind your code evaluates the experiment with, such as organization. Any context kind can be used, with no setting to turn on.
Experiment audience, the targeting rule the experiment runs onWhere the percentage rollout sits in the targeting rules: inside a conditional rule, with conditions or a segment, for part of your users, or on its own for every context the rules above it do not match. Contexts a conditional rule does not match get the rules below it and are not part of that split.
Audience allocation, the variations split, and the variation served to contexts outside the experimentThe shares of the percentage rollout, one per variation. Shares that add up to less than 100%, such as 10% for each of two variations, leave the other contexts out of the split: they go on to the rules below the percentage rollout and are served what those rules serve, usually the control through the default targeting rule. The targeting rules editor warns you when an experiment's shares add up to less than 100%.
A context entering the experiment when your code evaluates the flagAn exposure: the percentage rollout serving a context a variation during a run. A context counts once per variation, however often it evaluates the experiment. Only the SDK versions that report exposures are counted.
Iterations, and reshuffling traffic between themRuns. Saving a percentage rollout in an environment's targeting rules starts a run, with no separate start step. Ship…, Stop run…, or removing the last percentage rollout ends it, and saving different shares, or adding or removing a percentage rollout, ends it and starts a new run whose counts start from zero. Editing the hypothesis, the metrics, or the other rules does not end the run. A new run with the same shares serves each context the variation it had before. Each environment runs its own split, one run at a time.
Primary metricThe primary metric, with the metric kind it decides on.
Secondary metrics, up to 20 metrics per experimentSecondary metrics, which support the decision, and guardrails, metrics that must not get worse: the results warn you when a guardrail is likely worse for a variation. An experiment can have up to 10 metrics, and a project up to 50.
HypothesisThe hypothesis, on the experiment's Settings tab. Each run keeps the hypothesis as it was when the run started.
Stopping the experiment and shipping the winning variationShip…: in one save, the variation you pick becomes the default targeting rule value and every percentage rollout is removed. It applies to the whole environment, not only to the contexts the experiment's rule matched; a conditional rule that serves a single value stays, so the contexts it matches keep that value. See Ship a variation. To end a run without choosing a variation, use Stop run…: every percentage rollout is removed and the default targeting rule value keeps serving. Either way, the run keeps the note you give.
Health checks, such as the sample ratio mismatch checkThe mismatch warning on the Exposures card, which says when the split does not match the configured shares. A mismatch also raises an alert. The card also says how many evaluations it left out because they came from contexts without an identifier or from older SDK versions, and the Results panel shows each metric's values from the start of the run, so you can check that its events arrive.
Sample size calculatorThe How long to run card on the experiment's Experiment tab. For lifts of 2%, 5%, 10%, 20% and 50% on the primary metric, it gives the exposures a run needs before a variation has a good chance of reading Likely better, and the days that takes: before a run from the conversion and the contexts a day you enter, and during a run from the run's own numbers. See How long a run needs.
Frequentist analysis, fixed-horizon or sequentialNot available. ConfigDirector's results are Bayesian, and reading them often does not change what they mean, but early in a run they can swing a lot, so decide before you start how long the run will go. See How the variations are compared.
Bayesian analysis, with a threshold you choose and shrinkage priors for the treatments unless you choose uninformative priorsBayesian analysis with flat priors for every variation, so every number comes from the run's own data, and one bar for the verdicts, the same in both directions and for every metric. Neither can be changed.
CUPED, stratified sampling, multiple comparisons correctionNot available. Results use only what happened during the run, and each metric is compared on its own. What the method does not do explains what that means for reading them.
HoldoutsNot available. To keep some users out of every experiment, add a conditional rule with a segment of those users above each experiment's split, serving them the control; they are not part of the experiment. ConfigDirector does not compare those users with the experiments' combined effect.
Mutually exclusive experiments, in layersNot available. A context can be in several experiments at once, and an event it reports counts toward every run that exposed it. To keep two experiments apart, put each one's split inside a conditional rule on a trait your code sets, such as /experiment_group, so that no context matches both.
Multi-armed banditsNot available. A run's shares stay as you saved them, and saving different shares starts a new run.
Funnel optimization experimentsNot available. Attach a metric for each step of the funnel with Conversion, and compare the steps one by one, as How metrics map shows.
Results filtered by context attributeNot available. Results are per percentage rollout, so to compare customer tiers, give each tier its own split inside a conditional rule on a trait such as /tier before the run starts, and each split gets results of its own.
Warehouse native experimentationNot available. Results come from the events your application reports with track.
Data Export of experiment dataNot available. The CLI, the MCP server, and the Admin API return each run's full results, and your application can report each exposure to your analytics tool, as Send exposures to your analytics tool shows.

How metrics map

A ConfigDirector metric is the events with one name your application reports with track, all of them or only those whose details match its filter, defined once per project on the Metrics page with a direction, Higher is better or Lower is better. Each metric kind turns a variation's events into one number, and a context that reported nothing counts as zero:

LaunchDarkly metricConfigDirector metric
Custom conversion binaryA metric on the same event name, with Conversion: the share of the variation's contexts that reported the event at least once.
Custom conversion countCount per context: how many times each context reported the event, averaged over the variation's contexts.
Custom numeric, summed per contextValue per context: the sum of the event's value per context, averaged over the variation's contexts. Track the event with the number you passed as metricValue as its value. A number the event's data carries, such as the items in an order, can be summed instead as the metric's value field.
Custom numeric with Exclude units that generate no eventsNot available. A context that reported nothing counts as zero, so the average is over every context the variation reached.
Custom numeric averaged per context, or analyzed by percentileNot available. For a measure such as load time, track an event when it is slower than a threshold you pick, and give it a Conversion metric with Lower is better: the share of contexts that had a slow load.
Page viewed, as occurrence or countA track call your code makes where the page shows, such as client.track("pricing_page_viewed"), with Conversion for an occurrence metric or Count per context for a count metric.
Clicked or tapped, as occurrence or countA track call in the element's click handler, with Conversion for an occurrence metric or Count per context for a count metric.
Success criteria: higher or lower is betterThe metric's Direction. The chance to beat control and the verdict follow it: on a metric where lower is better, fewer events than the control count as better.
Metric groups, standard or funnelNot available. Attach each metric on its own. For a funnel, attach a metric for each step with Conversion, and compare the steps one by one.
Filters on event dataA metric filter: up to 5 conditions on the event's details, which take the place of LaunchDarkly's data, and an event counts when it matches all of them. Text takes is one of or is NOT one of, a number =, !=, >, >=, < or <=, and a boolean is true or is false. An OR between values of one field becomes is one of with each value, and conditions on different fields cannot be joined by OR. A nested field can be filtered on too, such as /shipping/country. See Filter the events or sum a detail field.
Filters on context attributesNot available directly. Copy the attribute into the event's details when you call track, such as the context's plan as plan, and give the metric a filter on that detail field.
WinsorizationNot available. Each value counts as reported, so cap outlying values in your code before you call track.
Autogenerated metrics from observability, AI, or OpenTelemetry eventsNot available. Metrics come only from track, so report the outcomes your code sees, such as an error it shows, with track.
Imported metric eventsNot available. An event counts only when an SDK reports it with track.
Measurement windowNot available. An event counts from its context's first exposure to the end of the run. See Which events count.

How ConfigDirector computes results explains each metric kind, and the Experiments guide shows how to define a metric and attach it with a role.

Replace the track calls

Your application keeps reporting the same outcomes under the same event names, so each metric keeps the name your team knows. Report each one for the context you evaluate the experiment with. LaunchDarkly's metricValue becomes the event's value, and its data becomes details when it is an object of up to 20 top-level fields and 1 KB as JSON. Details beyond those limits are left out and the event is still reported, so keep only the fields you need. Wrap any other data, such as a single string, in an object, like { source: data }.

A Node.js service with the LaunchDarkly server SDK:

Before: LaunchDarkly
const context = { kind: "user", key: "user-123", plan: "enterprise" };

const buttonLabel = await ldClient.variation("checkout-cta-copy", context, "Start free trial");

ldClient.track("checkout_completed", context, { coupon: "SPRING" }, 49);

The same with the ConfigDirector Node.js SDK. The context still comes second, and the amount and the data go in one object:

After: ConfigDirector
const context = { id: "user-123", traits: { plan: "enterprise" } };

const buttonLabel = client.getValue("checkout-cta-copy", "Start free trial", context);

client.track("checkout_completed", context, { value: 49, details: { coupon: "SPRING" } });

A web application with the LaunchDarkly JavaScript client SDK:

Before: LaunchDarkly
const buttonLabel = ldClient.variation("checkout-cta-copy", "Start free trial");

ldClient.track("checkout_completed", { coupon: "SPRING" }, 49);

The same with the ConfigDirector JavaScript SDK, which reports the event for the client's current context, the one you gave initialize or updateContext:

After: ConfigDirector
const buttonLabel = client.getValue("checkout-cta-copy", "Start free trial");

client.track("checkout_completed", { value: 49, details: { coupon: "SPRING" } });

If your application tracks through OpenFeature's tracking API with the LaunchDarkly provider, its track calls stay as they are once the ConfigDirector provider is registered: the value of the tracking event details is still the event's value, and its other fields become the details.

track is available, and exposures are reported, from version 1.13.0 of the Node.js SDK and 1.11.0 of the JavaScript SDK. SDK versions that report exposures lists the version for every other SDK, and Tracked events links each SDK's track.

Read the results

The Results panel on the experiment's Experiment tab compares each variation with the control on every metric the experiment is measured on. This is how it relates to LaunchDarkly's results page:

LaunchDarkly results pageConfigDirector Results panel
ControlThe control, first in each table.
Conversion rate, or posterior meanEach variation's value, such as 14.3% with 672 of 4,702 beneath it for Conversion, or the average per context for the other metric kinds.
Relative differenceThe lift, in the Lift · likely range column: how much higher or lower the variation's value is than the control's.
Credible intervalThe likely range beside the lift, such as +1% to +25%: where the real lift is likely to be. A range that spans zero means the variation could still turn out better or worse than the control.
Probability to beat controlChance to beat control: the chance that the variation is better than the control, in the metric's direction.
Probability to be bestChance to be best, shown with three or more variations: each variation's chance, the control included, of being the best of them all. With two variations, the panel leaves it out, since it would repeat the chance to beat control.
Expected lossNot available. The likely range shows how much worse than the control a variation could be.
The winning variationA verdict for each variation on each metric kind: Likely better, Likely worse, or No clear difference. The verdict on the primary metric's kind is the one the Ship dialog shows. Nothing ships or stops on its own: your team decides.
Results updated at least every 10 minutes on the first day, hourly until day 60, then dailyResults up to 25 minutes behind what your applications report, for the whole run.
Charts of the results over timeA daily chart of each variation's value for the run so far, with a point for each day in UTC, ending with the current numbers.

The panel also warns you when a guardrail is likely worse for a variation. Until every variation has enough exposures, it shows each variation's value and says the run needs more exposures before the variations can be compared. How ConfigDirector computes results explains every number on the panel, and what the method does not do.

Move one experiment

For each experiment you move:

  1. Create the experiment with the flag's key and the Experiment role, with a variation for each LaunchDarkly variation under the same name, and pick LaunchDarkly's control as the Default variation. For a Boolean experiment, rename Enabled and Disabled on the Settings tab.
  2. On the Metrics page, define a metric for each event the experiment measured, with its direction and the metric kinds you want.
  3. On the experiment's Settings tab, attach the metrics with their roles, the primary metric with the kind it decides on, and write the hypothesis, before you start the run.
  4. Release the code that reads the experiment with getValue and reports each outcome with track, for the same context, before you start the run.
  5. Decide how long the run will go, such as one or two full weeks. In Test, click Start experiment…, save the split, and check that the Exposures card counts contexts and the Results panel shows each metric receiving events. Then save the split in your live environment, inside a conditional rule if the experiment targets part of your users.
  6. When that time is up, read the primary metric's verdict, check the guardrails and the mismatch warning, and use Ship… or Stop run…, with a note, in each environment that ran the experiment.
  7. Once the experiment's config has settled, put its value in your code, and archive the config once your applications stop reading it.

Experiments, metrics, and results are available on Free and Pay as you go, and tracked events are not billed. Pricing and billing lists what is.

Verify, then remove LaunchDarkly

Once an application reads a config from ConfigDirector:

  • Evaluation Activity on the config shows the values being served in each environment. See Evaluation Activity.
  • Alerts catch the mistakes a migration makes: a key the application asks for that does not exist, a config read with the wrong type, an in-code default value that drifts from the value served, and the default value served more often than expected. See Alerts.
  • For a flag you rolled out by percentage, the same identifier gets the same value on every evaluation, as in LaunchDarkly. The split itself is assigned afresh, so a user who was in LaunchDarkly's 10% is not necessarily in ConfigDirector's. Switch the SDK over at a point in the rollout where that is acceptable, or at 0% or 100%.

When every application has switched, remove the LaunchDarkly SDK and its keys from the code, and archive the flags in LaunchDarkly. From then on, the config lifecycle tells you when each temporary config has settled and can be removed from the code too.

Metering

Both services bill client SDK usage in monthly active users. One difference matters when your apps evaluate more than one context kind: LaunchDarkly bills only the kind with the most monthly active users, while ConfigDirector adds every kind together, so a device context before sign-in and a user context after it count as two. For server SDKs, LaunchDarkly counts service connections and ConfigDirector counts the hours they spend connected. ConfigDirector also counts Admin API requests. Pricing and billing explains the three and the free allowance, which applies on both pricing options.