Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: send appName as an identifier in LD context #461

Merged
merged 3 commits into from
Mar 29, 2024
Merged

Conversation

thezero
Copy link
Contributor

@thezero thezero commented Mar 28, 2024

What this PR does / why we need it

Update LaunchDarkly context by introducing appName property in the user context. This property is already used by client-side SDK (OrCA) to identify various apps built in OrCA. In order to have a better overview of usage of flags across our codebase, we're introducing the appName property across all LD clients.

This is a backwards compatible change because it doesn't change how existing flags are evaluated. It's not expected to use this new property in feature flag targeting; instead, this will come in handy as a debugging/organization tool.

Recently, there were at least two occasions where this would have been useful:

  1. An SDK sending invalid value of user id
  2. An SDK sending incorrect insights data

In both cases, having the appName would speed up the fault detection.

Jira ID

[XX-XX]

Notes for your reviewers

@thezero thezero requested a review from a team as a code owner March 28, 2024 17:06
@malept malept changed the title feat: Send appName as an identifier in LD context feat: send appName as an identifier in LD context Mar 28, 2024
@malept malept enabled auto-merge (squash) March 29, 2024 18:29
@malept malept merged commit 09c5bfa into main Mar 29, 2024
2 checks passed
@malept malept deleted the thezero/send-appname branch March 29, 2024 18:32
@getoutreach-ci-2
Copy link

🎉 This PR is included in version 1.22.0-rc.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@getoutreach-ci-2
Copy link

🎉 This PR is included in version 1.22.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants