fix: add usage tracking to config method#60
Merged
jsonbailey merged 2 commits intomainfrom Aug 28, 2025
Merged
Conversation
- Add tracking call for :ai:config:function:single event - Include test to verify tracking functionality - Follows SDK spec requirement 1.2.3.5 Co-Authored-By: jbailey@launchdarkly.com <accounts@sidewaysgravity.com>
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:
|
Co-Authored-By: jbailey@launchdarkly.com <accounts@sidewaysgravity.com>
keelerm84
approved these changes
Aug 18, 2025
jsonbailey
added a commit
that referenced
this pull request
Aug 28, 2025
🤖 I have created a release *beep* *boop* --- ## [0.10.1](0.10.0...0.10.1) (2025-08-28) ### Bug Fixes * add usage tracking to config method ([#60](#60)) ([e7294ca](e7294ca)) --- 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> Co-authored-by: Jason Bailey <jbailey@launchdarkly.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.
Tracking internally in SDK-1414.
Add usage tracking to config method
This PR implements SDK spec requirement 1.2.3.5 by adding usage tracking to the
configmethod across all AI SDK repositories, following the pattern established in JS Core PR #904.Requirements
Related issues
Describe the solution you've provided
Added a single tracking call
track('$ld:ai:config:function:single', context, key, 1)at the beginning of eachconfigmethod across all 4 AI SDK repositories:@ld_client.track('$ld:ai:config:function:single', context, config_key, 1)self._client.track('$ld:ai:config:function:single', context, key, 1)c.sdk.TrackMetric("$ld:ai:config:function:single", context, 1, ldvalue.String(key))_client.Track("$ld:ai:config:function:single", context, LdValue.Of(key), 1)Each implementation includes a corresponding unit test to verify the tracking call is made with the correct parameters.
Critical Review Points
🔍 Key Items to Review:
$ld:ai:config:function:singleis exactly as specifiedDescribe alternatives you've considered
Additional context
Cross-SDK Implementation Details
track(event, context, key, value)track(event, context, key, value)TrackMetric(event, context, value, data)Track(event, context, data, value)