• /
  • EnglishEspañolFrançais日本語한국어Português
  • Se connecterDémarrer

Integrate LaunchDarkly with the Python agent

|View as Markdown (English)

preview

We're still working on this feature, but we'd love for you to try it out!

This feature is currently provided as part of a preview program pursuant to our pre-release policies.

The New Relic Python agent integrates with LaunchDarkly feature management so you can observe how feature flags and releases affect your application. This integration uses the LaunchDarkly observability plugin and OpenTelemetry support in the Python agent to connect your LaunchDarkly data with your New Relic APM data.

This document explains how to install the required packages and enable the integration.

Prerequisites

Before you begin, make sure you have:

  • A New Relic license key
  • A LaunchDarkly account and license
  • An application written in Python and monitored with the New Relic Python APM agent
  • Access to the LaunchDarkly OpenTelemetry (OTel) beta

Installation and configuration

Install the required packages

Install the following Python packages within the same environment as the application:

  • newrelic
  • launchdarkly-observability
bash
$
pip install newrelic launchdarkly-observability

The following packages are also required and typically install automatically as dependencies of launchdarkly-observability:

  • opentelemetry-api
  • launchdarkly-eventsource
  • launchdarkly-server-sdk
  • launchdarkly-server-sdk-otel

If these dependencies are not installed automatically, install them manually using pip:

bash
$
pip install opentelemetry-api launchdarkly-eventsource launchdarkly-server-sdk launchdarkly-server-sdk-otel

Enable the integration

To enable the integration, set both launch_darkly_integration.enabled and opentelemetry.enabled to true. Select one of the following configuration methods to configure the application:

Verify the integration

After enabling these settings, restart the application so the Python agent loads the updated configuration. Next, generate test traffic and verify that the application continues reporting data in APM & services.

What's next

Droits d'auteur © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.