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:
newreliclaunchdarkly-observability
$pip install newrelic launchdarkly-observabilityThe following packages are also required and typically install automatically as dependencies of launchdarkly-observability:
opentelemetry-apilaunchdarkly-eventsourcelaunchdarkly-server-sdklaunchdarkly-server-sdk-otel
If these dependencies are not installed automatically, install them manually using pip:
$pip install opentelemetry-api launchdarkly-eventsource launchdarkly-server-sdk launchdarkly-server-sdk-otelEnable 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
- Learn more about OpenTelemetry API support in the New Relic agents.
- Review all Python agent configuration options.