generated from amazon-archives/__template_Custom
-
Notifications
You must be signed in to change notification settings - Fork 183
Tracing in ML-Commons #4084
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
chriswlai
wants to merge
32
commits into
opensearch-project:main
Choose a base branch
from
chriswlai:rebase/tracing
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Tracing in ML-Commons #4084
Conversation
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
* adding agent tracing to mlplugin Signed-off-by: chrislai <[email protected]> * add settings and clean code Signed-off-by: chrislai <[email protected]> * add tests Signed-off-by: chrislai <[email protected]> * cr fixes Signed-off-by: chrislai <[email protected]> * tests message fix and spotlessApply Signed-off-by: chrislai <[email protected]> * spotlessApply Signed-off-by: chrislai <[email protected]> * add tests Signed-off-by: chrislai <[email protected]> * fix comments Signed-off-by: chrislai <[email protected]> * add visiblefortesting Signed-off-by: chrislai <[email protected]> * address comments Signed-off-by: chrislai <[email protected]> * javadoc Signed-off-by: chrislai <[email protected]> * more tests Signed-off-by: chrislai <[email protected]> * more class fixes Signed-off-by: chrislai <[email protected]> * overloaded method Signed-off-by: chrislai <[email protected]> --------- Signed-off-by: chrislai <[email protected]>
* adding agent tracing to mlplugin Signed-off-by: chrislai <[email protected]> * add tests Signed-off-by: chrislai <[email protected]> * cr fixes Signed-off-by: chrislai <[email protected]> * spotlessApply Signed-off-by: chrislai <[email protected]> * add tests Signed-off-by: chrislai <[email protected]> * P-E-R tracing Signed-off-by: chrislai <[email protected]> * add input/output to all spans Signed-off-by: chrislai <[email protected]> * per agent runner updates Signed-off-by: chrislai <[email protected]> * remove conversational agent changes Signed-off-by: chrislai <[email protected]> * rebase to main Signed-off-by: chrislai <[email protected]> * propagate tokens Signed-off-by: chrislai <[email protected]> * remove extractJsonBlock Signed-off-by: chrislai <[email protected]> * reconfigure classes and write coverage tests Signed-off-by: chrislai <[email protected]> * reconfig + tests Signed-off-by: chrislai <[email protected]> * address comments Signed-off-by: chrislai <[email protected]> * javadoc and avoid import* Signed-off-by: chrislai <[email protected]> * remove index mapping Signed-off-by: chrislai <[email protected]> * large refactor + testing Signed-off-by: chrislai <[email protected]> * avoid default null Signed-off-by: chrislai <[email protected]> * less null checks Signed-off-by: chrislai <[email protected]> --------- Signed-off-by: chrislai <[email protected]>
* adding agent tracing to mlplugin Signed-off-by: chrislai <[email protected]> * add tests Signed-off-by: chrislai <[email protected]> * cr fixes Signed-off-by: chrislai <[email protected]> * spotlessApply Signed-off-by: chrislai <[email protected]> * add tests Signed-off-by: chrislai <[email protected]> * P-E-R tracing Signed-off-by: chrislai <[email protected]> * add input/output to all spans Signed-off-by: chrislai <[email protected]> * conversational agent tracing Signed-off-by: chrislai <[email protected]> * allow flexability in tool return format Signed-off-by: chrislai <[email protected]> * directly access singleton + good practice coding Signed-off-by: chrislai <[email protected]> * remove null checks Signed-off-by: chrislai <[email protected]> * rebase off main Signed-off-by: chrislai <[email protected]> * spacing Signed-off-by: chrislai <[email protected]> * propagate tokens Signed-off-by: chrislai <[email protected]> * refactor and add tests Signed-off-by: chrislai <[email protected]> * fix rebase issues Signed-off-by: chrislai <[email protected]> * huge refactor Signed-off-by: chrislai <[email protected]> * clean code Signed-off-by: chrislai <[email protected]> * spotlessApply Signed-off-by: chrislai <[email protected]> * more refactoring Signed-off-by: chrislai <[email protected]> * more helper functions Signed-off-by: chrislai <[email protected]> * reformat listener Signed-off-by: chrislai <[email protected]> * major refactor + address comments Signed-off-by: chrislai <[email protected]> --------- Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
…pensearch-project#3976) * adding agent tracing to mlplugin Signed-off-by: chrislai <[email protected]> * add tests Signed-off-by: chrislai <[email protected]> * cr fixes Signed-off-by: chrislai <[email protected]> * spotlessApply Signed-off-by: chrislai <[email protected]> * add tests Signed-off-by: chrislai <[email protected]> * P-E-R tracing Signed-off-by: chrislai <[email protected]> * add input/output to all spans Signed-off-by: chrislai <[email protected]> * conversational agent tracing Signed-off-by: chrislai <[email protected]> * allow flexability in tool return format Signed-off-by: chrislai <[email protected]> * directly access singleton + good practice coding Signed-off-by: chrislai <[email protected]> * convflow and flow agent tracing Signed-off-by: chrislai <[email protected]> * new settings and noop update Signed-off-by: chrislai <[email protected]> * overloading method Signed-off-by: chrislai <[email protected]> * propagate tokens Signed-off-by: chrislai <[email protected]> * rebase cleaning Signed-off-by: chrislai <[email protected]> * clean Signed-off-by: chrislai <[email protected]> * clean Signed-off-by: chrislai <[email protected]> * javadoc Signed-off-by: chrislai <[email protected]> * rebase to main Signed-off-by: chrislai <[email protected]> * refactoring code Signed-off-by: chrislai <[email protected]> * refactoring Signed-off-by: chrislai <[email protected]> * address comments Signed-off-by: chrislai <[email protected]> * fixed numbering Signed-off-by: chrislai <[email protected]> * address comments Signed-off-by: chrislai <[email protected]> --------- Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
* adding agent tracing to mlplugin Signed-off-by: chrislai <[email protected]> * add settings and clean code Signed-off-by: chrislai <[email protected]> * add tests Signed-off-by: chrislai <[email protected]> * cr fixes Signed-off-by: chrislai <[email protected]> * tests message fix and spotlessApply Signed-off-by: chrislai <[email protected]> * spotlessApply Signed-off-by: chrislai <[email protected]> * add tests Signed-off-by: chrislai <[email protected]> * fix comments Signed-off-by: chrislai <[email protected]> * add visiblefortesting Signed-off-by: chrislai <[email protected]> * address comments Signed-off-by: chrislai <[email protected]> * javadoc Signed-off-by: chrislai <[email protected]> * more tests Signed-off-by: chrislai <[email protected]> * more class fixes Signed-off-by: chrislai <[email protected]> * overloaded method Signed-off-by: chrislai <[email protected]> --------- Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Signed-off-by: chrislai <[email protected]>
Agent Tracing Storage and Visualization Tutorial
5 tasks
pyek-bot
reviewed
Sep 2, 2025
Comment on lines
+477
to
+479
long llmLatency = System.currentTimeMillis() - llmStartTime; | ||
|
||
Map<String, Integer> extractedTokens = MLAgentTracer.extractTokensFromModelOutput(modelTensorOutput, allParams); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
token calculation
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.
Description
This feature adds tracing to ML-Commons. More details can be found here: https://quip-amazon.com/Nc4RA8w6XIwa/Design-Doc-ML-Commons-Agent-Tracing-Observability
Related Issues
Resolves #3971
Check List
--signoff
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.