LaunchDarkly

Supported OS Linux Windows Mac OS

LaunchDarkly integration

Overview

LaunchDarkly provides the following integrations with Datadog:

Events integration

The LaunchDarkly events integration for Datadog brings flag event markers to your monitoring dashboards, so you can see the effects of your LaunchDarkly feature deployments on your customer’s services or systems. For instance, if a deployed feature causes a service to slow down, you can see the cause within Datadog.

Feature flag tracking integration

LaunchDarkly’s feature flag tracking integration enriches your RUM data with your feature flags to provide visibility into performance monitoring and behavioral changes. Determine which users are shown a user experience and if it is negatively affecting the user’s performance.

Relay proxy metrics integration

If you are using the LaunchDarkly Relay Proxy, you can configure it to export metrics, such as active and cumulative connections, to Datadog.

Setup

Events integration

The LaunchDarkly events integration uses a Datadog API key, which can be created by a Datadog admin. Once you obtain a Datadog API key, see the LaunchDarkly documentation for the Datadog integration to learn how to setup the LaunchDarkly events integration for Datadog.

Feature flag tracking setup

Feature flag tracking is available in the RUM Browser SDK. For detailed set up instructions, visit the Getting started with Feature Flag data in RUM guide.

  1. Update your Browser RUM SDK version 4.25.0 or above.
  2. Initialize the RUM SDK and configure the enableExperimentalFeatures initialization parameter with ["feature_flags"].
  3. Initialize LaunchDarkly’s SDK and create an inspector reporting feature flag evaluations to Datadog using the snippet of code shown below.
const client = LDClient.initialize("<APP_KEY>", "<USER_ID>", {
  inspectors: [
    {
      type: "flag-used",
      name: "dd-inspector",
      method: (key: string, detail: LDClient.LDEvaluationDetail) => {
        datadogRum.addFeatureFlagEvaluation(key, detail.value);
      },
    },
  ],
});

Relay Proxy metrics

Follow the Relay Proxy’s Metrics integrations documentation to configure this feature.

Data Collected

Metrics

launchdarkly_relay.connections_env_platformCategory_userAgent
(gauge)
The number of current proxied streaming connections.
Shown as connection
launchdarkly_relay.newconnections_env_platformCategory_relayId_userAgent
(gauge)
The number of streaming connections created.
Shown as connection
launchdarkly_relay.requests_env_method_platformCategory_route_userAgent
(gauge)
Number of requests received.
Shown as request

Events

The LaunchDarkly events integration sends flag, project, and environment events from LaunchDarkly to Datadog.

Service Checks

The LaunchDarkly integration does not include any service checks.

Support

Need help? Contact Datadog Support.

Further Reading

Learn more about LaunchDarkly and the Datadog events integration.

PREVIEWING: may/embedded-workflows