feat!: rename track_latency to track_duration on AIGraphTracker#138
Open
jsonbailey wants to merge 2 commits intomainfrom
Open
feat!: rename track_latency to track_duration on AIGraphTracker#138jsonbailey wants to merge 2 commits intomainfrom
jsonbailey wants to merge 2 commits intomainfrom
Conversation
…te 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>
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
AIGraphTracker.track_latency()→track_duration()to align with the updated AIGRAPHTRACK spec$ld:ai:graph:latency→$ld:ai:duration:totalTest plan
track_latencyor$ld:ai:graph:latencyin the codebase🤖 Generated with Claude Code
Note
Medium Risk
Breaking API/event-name change for telemetry: downstream callers and dashboards relying on
track_latency/$ld:ai:graph:latencymust migrate to the new method and event key.Overview
Updates graph-level tracking to report duration instead of latency by renaming
AIGraphTracker.track_latency()totrack_duration()and changing the emitted event from$ld:ai:graph:latencyto$ld:ai:graph:duration:total.All LangGraph and OpenAI agent graph runners (and their unit/integration tests) are updated to call the new method and assert on the new event key for both success and failure paths.
Reviewed by Cursor Bugbot for commit f069ef0. Bugbot is set up for automated code reviews on this repo. Configure here.