Add telemetry instrumentation for optimizer#3978
Merged
aponcedeleonch merged 1 commit intomainfrom Mar 3, 2026
Merged
Conversation
aponcedeleonch
commented
Mar 3, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3978 +/- ##
==========================================
- Coverage 68.47% 68.45% -0.02%
==========================================
Files 437 437
Lines 44419 44550 +131
==========================================
+ Hits 30417 30498 +81
- Misses 11636 11673 +37
- Partials 2366 2379 +13 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
yrobla
approved these changes
Mar 3, 2026
Wrap the optimizer factory with metrics and tracing so that every FindTool and CallTool invocation records request counts, error counts, duration histograms, result-set sizes, and token-savings percentages. The decorator is applied when a TelemetryProvider is configured. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1be5d75 to
1e1ec2d
Compare
Member
Author
|
@jerm-dro will merge this. If you have any comment feel free to leave it and I will address it in a future PR |
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
telemetryOptimizer) that records OTel metrics and traces forFindToolandCallTooloperationsServer.Startwhen aTelemetryProvideris configuredTest plan
go test ./pkg/vmcp/server/... -count=1)go vetcleangofmtclean🤖 Generated with Claude Code