Skip to content

Conversation

abarker-launchdarkly
Copy link
Contributor

Requirements

  • I have added test coverage for new or changed functionality
  • I have followed the repository's pull request submission guidelines
  • I have validated my changes against all supported platform versions

Related issues

https://launchdarkly.atlassian.net/browse/SDK-1117

Describe the solution you've provided

Implemented OpenFeature Provider method track() in LaunchDarklyProvider. It makes a call under the hood to LDClient.track(). The value attribute will be pulled out of the TrackingEventDetails param and passed to LDClient.track() as metricValue. The remaining object (without value) will be passed to LDClient.track() as data. If the remaining object is empty then undefined will be passed.

Describe alternatives you've considered

N/A

Additional context

N/A

@abarker-launchdarkly abarker-launchdarkly requested a review from a team as a code owner March 20, 2025 21:27
expect(translateTrackingEventDetails({ value: 12345 })).toBeUndefined();
});

it('returns object without value attribute', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I'd read back through the test names as sentences to make sure they read well that way.

For example "It returns object without value attribute." vs "It returns an object without the value attribute."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@kinyoklion
Copy link
Member

Looks good!

@abarker-launchdarkly abarker-launchdarkly merged commit 0818364 into main Mar 21, 2025
3 checks passed
@abarker-launchdarkly abarker-launchdarkly deleted the abarker/sdk-1117/openfeature-tracking-support branch March 21, 2025 15:50
abarker-launchdarkly pushed a commit that referenced this pull request Mar 21, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.1.0](openfeature-node-server-v1.0.0...openfeature-node-server-v1.1.0)
(2025-03-21)


### Features

* OpenFeature Tracking Support
([e636f29](e636f29))
* OpenFeature Tracking Support
([#52](#52))
([0818364](0818364))
* Update minimum node version, and update dev dependencies.
([#50](#50))
([db4db4c](db4db4c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants