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(launchdarkly-client-provider): Add tracking API #1219

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

tjosepo
Copy link
Contributor

@tjosepo tjosepo commented Mar 11, 2025

This PR

  • Adds Tracking to the LaunchDarkly Client Provider.
  • Calling OpenFeature.getClient().track("event-name", { someProperty: 123 }) will now properly call the LaunchDarkly JavaScript SDK.

How to test

Added a unit test. We just have to make sure that calling OpenFeature.getClient().track("event-name", { someProperty: 123 }) calls the underlying JavaScript SDK.

@tjosepo tjosepo requested a review from a team as a code owner March 11, 2025 17:24
@beeme1mr
Copy link
Member

Thanks for the PR. It's nice to see how straightforward it was to implement. Please consider briefly mentioning in the readme that tracking events are supported and possibly include an example.

@tjosepo
Copy link
Contributor Author

tjosepo commented Mar 11, 2025

Updated the README.md

@tjosepo
Copy link
Contributor Author

tjosepo commented Mar 12, 2025

Forgot to implement: https://openfeature.dev/specification/sections/tracking#requirement-621

Will make a new commit for it.

@tjosepo tjosepo force-pushed the launchdarkly-client-track branch from 502f0da to e90c8f7 Compare March 12, 2025 15:24
@beeme1mr beeme1mr merged commit e888d03 into open-feature:main Mar 12, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants