chore: update provider examples to use createTracker() factory#1305
Merged
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
|
@launchdarkly/js-sdk-common size report |
Contributor
|
@launchdarkly/js-client-sdk size report |
Contributor
|
@launchdarkly/browser size report |
Contributor
|
@launchdarkly/js-client-sdk-common size report |
joker23
approved these changes
Apr 22, 2026
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.
Summary
@exampleblocks and README code snippets in the LangChain, OpenAI, and Vercel AI provider packages to use the newconfig.createTracker()factory pattern introduced in@launchdarkly/server-sdk-aiv0.17.0config.trackerproperty across 3 READMEs and 2 source filesTest plan
aiConfig.trackerorconfig.trackerproperty accesses in the provider packages🤖 Generated with Claude Code
Note
Low Risk
Low risk because this is documentation/JSDoc example updates only, aligning sample code with the newer tracking API without changing runtime provider behavior.
Overview
Updates LangChain, OpenAI, and Vercel provider READMEs and JSDoc examples to use the
aiConfig.createTracker()factory, replacing directaiConfig.trackerproperty access.This keeps the sample tracking calls (
trackMetricsOf/trackStreamMetricsOf) the same but ensures examples match@launchdarkly/server-sdk-aiv0.17.0’s API.Reviewed by Cursor Bugbot for commit f1321cd. Bugbot is set up for automated code reviews on this repo. Configure here.