chore: rename trackLatency to trackDuration on LDGraphTracker#1285
Conversation
|
@launchdarkly/js-sdk-common size report |
|
@launchdarkly/js-client-sdk-common size report |
|
@launchdarkly/browser size report |
|
@launchdarkly/js-client-sdk size report |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes 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 cfb4846. Configure here.
… event key to $ld:ai:duration:total Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
cfb4846 to
67cc6cb
Compare

Summary
trackLatency()→trackDuration()on theLDGraphTrackerinterface andLDGraphTrackerImplclass to align with the existingtrackDurationnaming onLDAIConfigTracker$ld:ai:graph:latencyto$ld:ai:graph:duration:totalper the updated AIGRAPHTRACK specTest plan
yarn workspace @launchdarkly/server-sdk-ai test)🤖 Generated with Claude Code
Note
Medium Risk
Public API rename plus a telemetry event-key change may break downstream callers and dashboards if they aren’t updated, but the implementation change is small and localized.
Overview
Renames the graph timing API from
trackLatency(durationMs)totrackDuration(durationMs)onLDGraphTrackerandLDGraphTrackerImpl, including updated warnings and docs.Switches the emitted metric event from
$ld:ai:graph:latencyto$ld:ai:graph:duration:total, and updates unit tests to assert the new method name and event key.Reviewed by Cursor Bugbot for commit 67cc6cb. Bugbot is set up for automated code reviews on this repo. Configure here.