For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/feature_flags.md. A documentation index is available at /llms.txt.

Feature Flags

This product is not supported for your selected Datadog site. ().

Overview

Datadog Feature Flags is Datadog’s flag management product. You create flags in Datadog, deliver flag configuration to Datadog Feature Flags SDKs, and evaluate variants in your application through Datadog or OpenFeature APIs.

Datadog Feature Flags is built on the OpenFeature standard, an open-source, vendor-neutral specification for feature flag APIs. If you’re new to OpenFeature concepts like providers, evaluation context, and hooks, see the OpenFeature concepts documentation.

Feature flags enable you to toggle features on and off, conduct A/B/n testing, gradually roll out new functionality, and personalize user experiences without the need for extensive code deployments. With feature flags, you can empower your team to make dynamic changes, iterate rapidly, and deliver enhanced user experiences.

If your flags are managed by LaunchDarkly, Split, ConfigCat, or another provider and you only want Datadog to record evaluated variants in RUM, see RUM Feature Flag Tracking instead.

Use a client-side SDK when the flag is evaluated in a browser, mobile app, or game client. Use a server-side SDK when the flag is evaluated in a backend service that receives flag configuration through the Datadog Agent and Remote Configuration.

Credentials at a glance

CredentialUsed byWhere it goesSensitive?
Client tokenBrowser, mobile, and game SDKsClient application configurationNo — safe to ship in public client code
Application IDBrowser and RUM-backed client SDKsClient application configurationNo — public identifier
API keyDatadog Agent for server-side Remote ConfigurationAgent configuration onlyYes — keep server-side only

Do not put API keys in browser, mobile, or game applications.

Evaluation context and telemetry

Evaluation context attributes are the flat string, number, and Boolean values that Datadog uses for targeting rules and rollout bucketing. Set a stable targetingKey, such as a user ID, session ID, or device ID, so percentage rollouts are consistent.

Feature Flags telemetry includes exposure events, flag evaluation metrics, and optional RUM correlation depending on the SDK and configuration.

Further reading