chore: rename trackLatency to trackDuration on LDGraphTracker#1285
chore: rename trackLatency to trackDuration on LDGraphTracker#1285jsonbailey wants to merge 2 commits intofeat/ai-sdk-next-releasefrom
Conversation
… event key to $ld:ai:duration:total Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@launchdarkly/js-sdk-common size report |
|
@launchdarkly/js-client-sdk-common size report |
|
@launchdarkly/browser size report |
|
@launchdarkly/js-client-sdk size report |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

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
This is a public API rename and event-key change that can break downstream consumers and dashboards if they still call
trackLatencyor rely on the old$ld:ai:graph:latencymetric name.Overview
Renames the
LDGraphTrackerAPI fromtrackLatency()totrackDuration()and updatesLDGraphTrackerImpland unit tests accordingly.Changes the emitted metric event key from
$ld:ai:graph:latencyto$ld:ai:graph:duration:totalwhile preserving the existing at-most-once semantics and summary reporting viadurationMs.Reviewed by Cursor Bugbot for commit cfb4846. Bugbot is set up for automated code reviews on this repo. Configure here.