feat: Report provider name and version to LaunchDarkly - #30
Merged
Conversation
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
keelerm84
approved these changes
Aug 21, 2026
devin-ai-integration
Bot
force-pushed
the
devin/ruby-wrapper-info
branch
from
August 21, 2026 21:42
89013eb to
683f283
Compare
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
Bot
force-pushed
the
devin/ruby-wrapper-info
branch
from
August 21, 2026 21:42
683f283 to
0cbc723
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ 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.
Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Reports the provider as the wrapper so LaunchDarkly can attribute usage to the OpenFeature Ruby provider rather than the base Ruby SDK.
Config#with_wrapper_information("open-feature-ruby-server", VERSION), leaving the application's configuration untouched.launchdarkly-server-sdk ~> 8.15, the release that addsConfig#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
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
Configexposeswrapper_name/wrapper_versionas 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-serverwith the gemVERSION, so usage is attributed to this provider instead of the base Ruby SDK.On client construction it derives config via
Config#with_wrapper_informationand leaves the caller’sConfigunchanged. Runtime dependency is bumped tolaunchdarkly-server-sdk ~> 8.15for 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.