Migrating from LaunchDarkly
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
- 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.
- 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=0for the full rules of that environment, andGET /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. - 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.
- Create your ConfigDirector organization and project. Sign up, create a project, and add an environment for each LaunchDarkly environment you use.
TestandProductionare created for you. Mark the environments that serve real traffic as live.
How the concepts map
Projects, environments, and flags
| LaunchDarkly | ConfigDirector |
|---|---|
| Project | Project |
| Environment | Environment. A critical environment in LaunchDarkly is a live environment in ConfigDirector. |
| Feature flag | Config, 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, JSON | Config 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. |
| Variations | The values a config serves. Experiments define them as named variations; other roles enter the value in each targeting rule. |
| Temporary and permanent flags | The 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 key | Config 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 availability | SDK availability: client SDKs, server SDKs, or both. Client and mobile applications both use the client SDK key. |
| Tags | Tags |
| JSON Schema on a flag's variations | JSON 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 links | No equivalent. Put the owner in the description, or in a tag. |
| Archived flag | Archived config. It can be restored for 30 days, and then it is purged. |
Targeting
| LaunchDarkly | ConfigDirector |
|---|---|
| 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 variation | There 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 targets | A 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 clauses | A 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, regex | Attribute 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 attribute | A 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 environment | A 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-based | Not 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. |
| Prerequisites | Not 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 rollouts | Not available. Changes take effect as soon as they are saved. |
| Test run | The targeting rules tester, which evaluates saved or unsaved rules against a context and shows why each rule matched or not. |
Contexts
| LaunchDarkly | ConfigDirector |
|---|---|
| Context | Context |
Context kind: user, organization, device, custom | Context kind. Leaving it out means user. Any lowercase name of up to 64 letters, digits, dashes, or underscores works. |
Context key | Identifier, id in the SDKs. A context is identified by its kind and identifier together, so user 42 and device 42 are different contexts. |
Context name | name |
Custom attributes, such as email or plan | Traits, an arbitrary JSON object. Targeting rules address a trait with a JSON pointer, such as /plan or /address/country. |
anonymous: true | An 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 evaluation | Not 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 attributes | Not available. Only put the traits your targeting rules use in the context. |
SDKs and delivery
| LaunchDarkly | ConfigDirector |
|---|---|
| SDK key | Server SDK key, a secret, for server SDKs. |
| Client-side ID and mobile key | Client 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 option | The same. See Architecture. |
| Server SDKs evaluate locally | The same. Server SDKs receive the rules and segments and evaluate every context in memory. |
| Client SDKs receive evaluated values | The same. |
| Fallback value in code | The in-code default value, passed with every read. It is returned only when the SDK cannot evaluate the config. |
| Flag change listeners | watch 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 server | Client 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 Proxy | Not needed. Every SDK connects to ConfigDirector directly over streaming. A base url option is available for an HTTP proxy of your own. |
| Test data sources | The 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 results | Metrics 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:
- 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.
- Set the SDK availability to match where the flag is read.
- In each environment, recreate the targeting: individual targets as
identifier is one ofrules, rules as conditional rules, the rollout as a percentage rollout, and the fallthrough as the default targeting rule value. - 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_configfor the flag andconfigdirector_config_targeting_rulesfor 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-launchdarklyagent 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, itstrackcalls included, as the next section and Move your experiments show.
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:
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:
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:
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:
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 SDK | ConfigDirector SDK |
|---|---|
| JavaScript client | JavaScript |
| React Web | React |
| Vue | Vue |
| React Native | React Native |
| Flutter | Flutter |
| iOS | Swift |
| Android | Android |
| Node.js server, Python, Java, .NET server, Go | Node.js, Python, Java, .NET, Go |
| Next.js integration | Next.js. ConfigDirector also has a Nuxt SDK. |
| OpenFeature providers | OpenFeature 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
- 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.
- 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 markedanonymous, or without anid, counts for no experiment, unlike in LaunchDarkly, where anonymous contexts can be in experiments. To count signed-out visitors, give each one anidof your own, such as one you keep in a cookie, and leaveanonymousoff. Give every context a stable identifier has the details, including what each SDK serves a context without anid. - 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 needtrack: 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
| LaunchDarkly | ConfigDirector |
|---|---|
| Experiment on a flag | An 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 config | Not available. An experiment's variations are values your code reads, so a String experiment can name the prompt or the model each variation uses. |
| Variations | Named 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 test | Not available as a setting. Give the experiment two variations with different values, such as a1 and a2, that your code treats the same. |
| Control variation | The 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 unit | The 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 on | Where 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 experiment | The 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 flag | An 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 them | Runs. 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 metric | The primary metric, with the metric kind it decides on. |
| Secondary metrics, up to 20 metrics per experiment | Secondary 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. |
| Hypothesis | The 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 variation | Ship…: 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 check | The 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 calculator | The 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 sequential | Not 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 priors | Bayesian 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 correction | Not 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. |
| Holdouts | Not 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 layers | Not 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 bandits | Not available. A run's shares stay as you saved them, and saving different shares starts a new run. |
| Funnel optimization experiments | Not 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 attribute | Not 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 experimentation | Not available. Results come from the events your application reports with track. |
| Data Export of experiment data | Not 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 metric | ConfigDirector metric |
|---|---|
| Custom conversion binary | A metric on the same event name, with Conversion: the share of the variation's contexts that reported the event at least once. |
| Custom conversion count | Count per context: how many times each context reported the event, averaged over the variation's contexts. |
| Custom numeric, summed per context | Value 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 events | Not 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 percentile | Not 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 count | A 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 count | A 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 better | The 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 funnel | Not 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 data | A 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 attributes | Not 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. |
| Winsorization | Not available. Each value counts as reported, so cap outlying values in your code before you call track. |
| Autogenerated metrics from observability, AI, or OpenTelemetry events | Not available. Metrics come only from track, so report the outcomes your code sees, such as an error it shows, with track. |
| Imported metric events | Not available. An event counts only when an SDK reports it with track. |
| Measurement window | Not 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:
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:
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:
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:
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 page | ConfigDirector Results panel |
|---|---|
| Control | The control, first in each table. |
| Conversion rate, or posterior mean | Each 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 difference | The lift, in the Lift · likely range column: how much higher or lower the variation's value is than the control's. |
| Credible interval | The 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 control | Chance to beat control: the chance that the variation is better than the control, in the metric's direction. |
| Probability to be best | Chance 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 loss | Not available. The likely range shows how much worse than the control a variation could be. |
| The winning variation | A 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 daily | Results up to 25 minutes behind what your applications report, for the whole run. |
| Charts of the results over time | A 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:
- Create the experiment with the flag's key and the
Experimentrole, with a variation for each LaunchDarkly variation under the same name, and pick LaunchDarkly's control as the Default variation. For a Boolean experiment, renameEnabledandDisabledon the Settings tab. - On the Metrics page, define a metric for each event the experiment measured, with its direction and the metric kinds you want.
- 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.
- Release the code that reads the experiment with
getValueand reports each outcome withtrack, for the same context, before you start the run. - 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. - 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.
- 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.
Segment
Report experiment exposures to Segment from your application, so the destinations you have connected receive the variation each user saw.
From Firebase Remote Config
Move your remote configuration from Firebase Remote Config to ConfigDirector. How parameters, conditions, in-app defaults, and fetch and activate map, how to recreate the parameters, and how to switch the Flutter, Android, iOS, and web SDKs over.