LaunchDarkly
This page describes how to use Census with LaunchDarkly.
Last updated
Was this helpful?
This page describes how to use Census with LaunchDarkly.
Last updated
Was this helpful?
Click Add Service and select LaunchDarkly from the menu.
Open the LaunchDarkly app in another window to find the following credentials:
You'll need to create a new access token with the appropriate set of permissions. To learn how to create a service token, see in LaunchDarkly's documentation.
Visit Account settings > Authorization and click Create token.
For your new access token, give it a memorable name such as Census LaunchDarkly Integration
.
For role, you can use any existing role or custom policy that has the following permissions. Alternatively, select Inline policy. You can add multiple statements, one for each of the types of resources you intend to use with Census
Synced Segments
Resource: proj/*:env/*:segment/*
will grant access to all segments across all projects.
Action: createSegment
and updateIncluded
Metric Events
Resource: proj/*:env/*
will grant access to all projects.
Action: importEventData
Metrics
Resource: proj/*:metric/*
will grant access to all metrics across all projects (Metrics are not specific to an environment).
Action: All Actions ()
Check the box next to This is a service token. You can leave the API version set to the default value.
Click Save Token. Copy store the token generated somewhere safe while you're connecting it to Census. You will not be able to retrieve it again.
The above definition can also be modified using the Advanced Editor
Go to Account settings > Projects and copy the Project Key, Environment Key, and Environment ID (LaunchDarkly uses Environment ID and Client-side ID interchangeably) as shown in the screenshot below. You will need to create separate Environment Keys for each Environment you wish to sync to.
Object Name
Supported?
Sync Keys
Behaviors
Metric
✅
Key
Update or Create
Metric Event
✅
N/A
Send
Synced Segments
✅
User ID
Mirror
Metrics measure audience behaviors affected by the flags in your experiments. You can use metrics to track all kinds of things, from how often customers access a URL to how long that URL takes to load a page, etc
You can use Census to both Create or Update Metric definitions, or also send Metric Events in order to log data points that you've captured separately from your typical LaunchDarkly metric path.
ID - This whatever Identifier you use with LaunchDarkly to identify those context types. This could be your internal ID for a user or their email address. LaunchDarkly will happily accept whatever value you send here but in order for the segment to be useful, it must match the ID you are using with LaunchDarkly.
Context - This is the "type" of things in your segment. It can be the standard LaunchDarkly contexts such as Users or Companies, or any custom context you have created.
Learn more about all of our sync behaviors in our documentation.
if you want Census to support more LaunchDarkly objects and/or behaviors.
Census supports LaunchDarkly's Synced Segments with . You can use Census to send any of your segments to LaunchDarkly. Synced Segments are very straightforward, with only two details you need to consider:
via support@getcensus.com or start a conversation with us via the chat.