LaunchDarkly

LaunchDarkly

Send event data to LaunchDarkly

The configuration process for this destination mirrors Segment's setup. We've automatically modified the documentation from third-party sources to show you how to set up this destination with PostHog.

LaunchDarkly is a feature management platform that empowers development teams to safely deliver, control, and measure their software through feature flags.

With LaunchDarkly, you can run experiments on any feature flag. This destination allows you to connect existing PostHog events to LaunchDarkly custom metrics for use in LaunchDarkly experiments.

Good to know: This page is about the Actions-framework LaunchDarkly PostHog destination. There's also a page about the non-Actions LaunchDarkly destination. Both of these destinations receives data from PostHog.

<!-- In the section below, explain the value of this actions-based destination over the classic version, if applicable. If you don't have a classic version of the destination, remove this section. -->

Installation

To get started with LaunchDarkly:

  1. In LaunchDarkly, navigate to Account settings and copy the client-side ID for the project and environment that you would like to connect to PostHog.
  2. From the PostHog web app, click Data pipelines, then click Destinations.
  3. Search for LaunchDarkly and select it.
  4. Click Configure LaunchDarkly.
  5. Select the Source you want to connect to LaunchDarkly.
  6. Paste the LaunchDarkly client-side ID you copied in step 1 into the LaunchDarkly client-side ID field on the destination settings page.
<!-- The line below renders a table of connection settings (if applicable), Pre-built Mappings, and available actions. -->

info "A note about Identify calls" LaunchDarkly doesn't store user attributes for use with flag evaluations. As a result, PostHog doesn't support mapping Identify calls to LaunchDarkly actions.

Configuration

OptionDescription
LaunchDarkly client-side ID
Type: string
Required: True

Find and copy the client-side ID in the LaunchDarkly account settings page.

LaunchDarkly events host name
Type: string
Required: False

Your LaunchDarkly events host name. If not specified, the default value of events.launchdarkly.com will be used. Most customers will not need to change this setting.

Debug Mode
Type: boolean
Required: False

Will log configuration and request details

Using our REST API you can create this destination like so:

Terminal
# Create a new destination
curl --location 'https://us.i.posthog.com/api/environments/:project_id/hog_functions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <POSTHOG_PERSONAL_API_KEY>' \
--data '{
"type": "destination",
"name": "LaunchDarkly",
"inputs": {
"client_id": {
"value": ""
}
},
"enabled": true,
"template_id": "segment-actions-launchdarkly"
}'

FAQ

Is the source code for this destination available?

Yes. The source code is available on GitHub.

Who maintains this?

This is maintained by Segment. If you have issues with it not functioning as intended, please let us know!

What if I have feedback on this destination?

We love feature requests and feedback. Please tell us what you think.

What if my question isn't answered above?

We love answering questions. Ask us anything via our community forum.

Parts of this page are sourced from segmentio/segment-docs under the Creative Commons Attribution 4.0 International License. The content may have been modified according to this code.