Skip to content

feat: Report provider name and version to LaunchDarkly - #30

Merged
kinyoklion merged 3 commits into
mainfrom
devin/ruby-wrapper-info
Aug 21, 2026
Merged

feat: Report provider name and version to LaunchDarkly#30
kinyoklion merged 3 commits into
mainfrom
devin/ruby-wrapper-info

Conversation

@kinyoklion

@kinyoklion kinyoklion commented Aug 19, 2026

Copy link
Copy Markdown
Member

Reports the provider as the wrapper so LaunchDarkly can attribute usage to the OpenFeature Ruby provider rather than the base Ruby SDK.

  • The provider derives its client configuration with Config#with_wrapper_information("open-feature-ruby-server", VERSION), leaving the application's configuration untouched.
  • Requires launchdarkly-server-sdk ~> 8.15, the release that adds Config#with_wrapper_information (feat: Add Config#with_wrapper_information ruby-server-sdk#421). That version is now published, so dependency resolution succeeds.
Implementation details

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

Part of an audit of the LaunchDarkly OpenFeature providers against the current OpenFeature specification. The Java and .NET providers already identify themselves via wrapper info; the Ruby provider did not, so usage of this provider was indistinguishable from direct use of the Ruby server SDK.

Describe the solution you've provided

Config exposes wrapper_name/wrapper_version as readers only, so the base SDK gained a supported way to derive a configuration with different wrapper information. The provider calls it when constructing its client.

Describe alternatives you've considered

Setting the configuration's instance variables from the provider — rejected, as the provider must not depend on SDK internals. Rebuilding the configuration from its public readers — rejected because it would silently drop configuration options the provider does not know about.

Testing

bundle exec rake (RSpec + RuboCop) on Ruby 3.4: 55 examples, 0 failures; 12 files inspected, no offenses. CI now resolves against the published 8.15.0 gem.

Link to Devin session: https://app.devin.ai/sessions/0c452d209ec54b068ba120b4c92b8f6c
Requested by: @kinyoklion


Note

Overview
The OpenFeature Ruby provider now identifies itself to LaunchDarkly as wrapper open-feature-ruby-server with the gem VERSION, so usage is attributed to this provider instead of the base Ruby SDK.

On client construction it derives config via Config#with_wrapper_information and leaves the caller’s Config unchanged. Runtime dependency is bumped to launchdarkly-server-sdk ~> 8.15 for that API. A spec asserts wrapper name/version are passed through.

Reviewed by Cursor Bugbot for commit ffac4cf. Bugbot is set up for automated code reviews on this repo. Configure here.

@kinyoklion kinyoklion self-assigned this Aug 19, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot added the devin-pr PRs created by Devin label Aug 19, 2026
@kinyoklion
kinyoklion marked this pull request as ready for review August 20, 2026 21:57
@kinyoklion
kinyoklion requested a review from a team as a code owner August 20, 2026 21:57
@devin-ai-integration
devin-ai-integration Bot force-pushed the devin/ruby-wrapper-info branch from 89013eb to 683f283 Compare August 21, 2026 21:42
devin-ai-integration Bot and others added 2 commits August 21, 2026 21:42
Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com>
Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot force-pushed the devin/ruby-wrapper-info branch from 683f283 to 0cbc723 Compare August 21, 2026 21:42

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0cbc723. Configure here.

Comment thread spec/provider_spec.rb
Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com>
@kinyoklion
kinyoklion merged commit c5dd94d into main Aug 21, 2026
8 checks passed
@kinyoklion
kinyoklion deleted the devin/ruby-wrapper-info branch August 21, 2026 21:54
kinyoklion added a commit that referenced this pull request Aug 25, 2026
Adds a feature matrix to the README mirroring the OpenFeature Ruby SDK's
own feature table, so a reader can see at a glance what the provider
does and does not support.

- One row per OpenFeature SDK feature (providers, targeting, hooks,
logging, domains, eventing, shutdown, tracking, transaction context
propagation, extending), plus initialization and flag metadata.
- Every row is currently supported following the tracking, lifecycle,
eventing, wrapper, and flag metadata work; each note says how the
provider implements it, or that the OpenFeature SDK provides it with no
provider involvement.
- The legend keeps room for `⚠️`/`❌` so unsupported rows can state
whether the limitation is in the OpenFeature Ruby SDK or is a provider
gap.

<details>
<summary>Implementation details</summary>

**Requirements**

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

**Related issues**

Follow-up to the audit of LaunchDarkly's OpenFeature providers, which
produced #27, #28, #29, #30 and #31 in this repository.

**Describe the solution you've provided**

The matrix reuses the row set and legend of the [OpenFeature Ruby SDK
feature table](https://github.com/open-feature/ruby-sdk#-features) so
the two can be read side by side, and so the same format can be applied
to the other LaunchDarkly providers. Statements about eventing,
initialization, shutdown, tracking, and flag metadata were checked
against the current implementation in `lib/ldclient-openfeature`.

**Describe alternatives you've considered**

Writing a LaunchDarkly-specific row set instead of mirroring
OpenFeature's — rejected, since the point of the matrix is comparability
with the OpenFeature SDK table and with the other providers.

**Testing**

Documentation only; no code changes.

**Additional context**

Screenshots and a staging preview do not apply to a README change in a
server-side library.

</details>


Link to Devin session:
https://app.devin.ai/sessions/0c452d209ec54b068ba120b4c92b8f6c
Requested by: @kinyoklion

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Overview**
> Adds an OpenFeature **feature matrix** to the README so readers can
see at a glance what this provider supports.
> 
> The table mirrors the OpenFeature Ruby SDK feature list (providers,
targeting, hooks, logging, domains, eventing, initialization, shutdown,
tracking, transaction context, extending, flag metadata). Every row is
marked supported, with notes on how the provider implements it or that
the SDK handles it. The legend leaves room for partial/unsupported rows
later.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
898abf3. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
kinyoklion pushed a commit that referenced this pull request Aug 25, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.3.0](0.2.0...0.3.0)
(2026-08-25)


### Features

* Emit provider events from LaunchDarkly client status
([#29](#29))
([1b53b0c](1b53b0c))
* Populate OpenFeature flag metadata from the evaluation reason
([#31](#31))
([e6ef78a](e6ef78a))
* Report provider name and version to LaunchDarkly
([#30](#30))
([c5dd94d](c5dd94d))
* Support OpenFeature tracking
([#27](#27))
([709f52d](709f52d))
* Support provider initialization and shutdown
([#28](#28))
([27df803](27df803))

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

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Overview**
> **Release 0.3.0** — this PR only bumps version metadata from **0.2.0**
to **0.3.0** in `.release-please-manifest.json`,
`lib/ldclient-openfeature/version.rb`, and the `SDK_VERSION` example in
`PROVENANCE.md`, and adds the **0.3.0** section to `CHANGELOG.md`.
> 
> No provider or SDK logic changes appear in the diff. The new changelog
entry documents features already landed on main: OpenFeature
**tracking**, provider **initialization/shutdown**, **provider events**
from LaunchDarkly client status, **flag metadata** from evaluation
reason, and reporting **provider name/version** to LaunchDarkly.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
8416ff3. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

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

devin-pr PRs created by Devin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants