rudderlabs / rudder-sdk-js

JavaScript SDK for RudderStack - the Customer Data Platform for Developers.
https://www.rudderstack.com
Other
142 stars 82 forks source link

LaunchDarkly: support `shared key for anonymous users` #569

Closed chandlervdw closed 1 year ago

chandlervdw commented 2 years ago

Issue

The LaunchDarkly integration forcefully repurposes the autogenerated Rudderstack ID for the key that the LaunchDarkly API accepts. This forces you to pass and set a unique ID for every LaunchDarkly user, potentially maxing out your LaunchDarkly plan very quickly.

Solution

From the LaunchDarkly Docs

You do not always need to uniquely identify your anonymous users. Instead, you can use a shared key.

This integration should support options.integrations.LaunchDarkly.key as an override OR it should support an anonymousUsersSharedKey field.

saikumarrs commented 1 year ago

It has been fixed in https://github.com/rudderlabs/rudder-sdk-js/pull/575.