Skip to content

chore: update provider examples to use createTracker() factory#1305

Merged
jsonbailey merged 1 commit into
mainfrom
chore/fix-provider-tracker-jsdoc-examples
Apr 22, 2026
Merged

chore: update provider examples to use createTracker() factory#1305
jsonbailey merged 1 commit into
mainfrom
chore/fix-provider-tracker-jsdoc-examples

Conversation

@jsonbailey

@jsonbailey jsonbailey commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Updates JSDoc @example blocks and README code snippets in the LangChain, OpenAI, and Vercel AI provider packages to use the new config.createTracker() factory pattern introduced in @launchdarkly/server-sdk-ai v0.17.0
  • Removes references to the removed config.tracker property across 3 READMEs and 2 source files

Test plan

  • Verify no remaining aiConfig.tracker or config.tracker property accesses in the provider packages
  • Confirm JSDoc examples compile and reflect the current API

🤖 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 direct aiConfig.tracker property access.

This keeps the sample tracking calls (trackMetricsOf/trackStreamMetricsOf) the same but ensures examples match @launchdarkly/server-sdk-ai v0.17.0’s API.

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

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jsonbailey jsonbailey marked this pull request as ready for review April 22, 2026 00:14
@jsonbailey jsonbailey requested a review from a team as a code owner April 22, 2026 00:14
@github-actions

Copy link
Copy Markdown
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 25623 bytes
Compressed size limit: 29000
Uncompressed size: 125843 bytes

@github-actions

Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Compressed size: 31700 bytes
Compressed size limit: 34000
Uncompressed size: 113136 bytes

@github-actions

Copy link
Copy Markdown
Contributor

@launchdarkly/browser size report
This is the brotli compressed size of the ESM build.
Compressed size: 179470 bytes
Compressed size limit: 200000
Uncompressed size: 830325 bytes

@github-actions

Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 37607 bytes
Compressed size limit: 38000
Uncompressed size: 207149 bytes

@jsonbailey jsonbailey merged commit 0ba743a into main Apr 22, 2026
45 checks passed
@jsonbailey jsonbailey deleted the chore/fix-provider-tracker-jsdoc-examples branch April 22, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants