Draft
Conversation
Co-Authored-By: jbailey@launchdarkly.com <accounts@sidewaysgravity.com>
🤖 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:
|
jsonbailey
commented
Feb 19, 2026
jsonbailey
commented
Feb 19, 2026
Co-Authored-By: jbailey@launchdarkly.com <accounts@sidewaysgravity.com>
Co-Authored-By: jbailey@launchdarkly.com <accounts@sidewaysgravity.com>
…to ld_ai per sdk-specs #135 Co-Authored-By: jbailey@launchdarkly.com <accounts@sidewaysgravity.com>
…ttps://git-manager.devin.ai/proxy/github.com/launchdarkly/ruby-server-sdk-ai into devin/AIC-1636-1771538971-improve-usage-reporting
jsonbailey
commented
Feb 23, 2026
lib/server/ai/sdk_info.rb
Outdated
| @@ -0,0 +1,12 @@ | |||
| # frozen_string_literal: true | |||
|
|
|||
| require_relative 'version' | |||
Contributor
Author
There was a problem hiding this comment.
Why is version required here?
There was a problem hiding this comment.
You're right, it's not needed here — sdk_info.rb doesn't reference VERSION. Removed.
Co-Authored-By: jbailey@launchdarkly.com <accounts@sidewaysgravity.com>
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.
Requirements
Related issues
Describe the solution you've provided
Aligns the Ruby AI SDK's usage tracking with the updated spec from sdk-specs PRs #132, #134, and #135. Three categories of changes:
Renamed usage tracking event key from
$ld:ai:config:function:singleto$ld:ai:usage:completion-config, matching the new unified$ld:ai:usage:*namespace. (This SDK only has the single completion config method — no judge, agent, or createChat methods — so only one key needed updating.)Added SDK info tracking on initialization (
$ld:ai:sdk:info). WhenClientis constructed, it fires a single tracking event with SDK name, version, and language using an anonymous context with kindld_aiand keyld-internal-tracking. SDK identity constants are kept in a dedicatedsdk_info.rbmodule (similar tosdkInfo.tsin JS andsdk_info.pyin Python).Renamed
configtocompletion_configto align with the updated spec method naming. The oldconfigmethod is preserved as a deprecated proxy that emits a warning and delegates tocompletion_config.Human review checklist
$ld:ai:sdk:infouses colons (not dashes) per sdk-specs PR #135$ld:ai:usage:completion-configexactly matches the specld_ai(underscore) with keyld-internal-trackingper sdk-specs PRs #134/#135INIT_TRACK_CONTEXTbeing created at module load time (outsideclass Client) is acceptable — it callsLDContext.createwhen the module is first loadedconfig(emittingwarnon every call) is acceptable for existing consumersAdditional context