fix: fix duplicate eval logs & metrics from showing up#3
fix: fix duplicate eval logs & metrics from showing up#3
Conversation
Skip util-genai scope spans so we don't process already-instrumented spans Signed-off-by: Pavan Sudheendra <pavan0591@gmail.com>
📝 WalkthroughWalkthroughThese changes refactor three OpenTelemetry span processors to skip processing spans generated by the util-genai library, consolidate agent evaluation responsibility into the finish() method, and streamline LLM span detection logic across LangSmith, OpenLit, and Traceloop translators. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/review |
PR Reviewer Guide 🔍(Review updated until commit c732f21)Here are some key observations to aid the review process:
|
|
/improve |
PR Code Suggestions ✨Latest suggestions up to c732f21
Previous suggestionsSuggestions up to commit 30523d6
|
||||||||||||||||||||||
|
/review |
|
Persistent review updated to latest commit 30523d6 |
|
/review |
|
Persistent review updated to latest commit c732f21 |
|
/improve |
|
Persistent suggestions updated to latest commit c732f21 |
Skip util-genai scope spans so we don't process already-instrumented spans
Removed redundant handler.evaluate_agent() calls - Since finish() already triggers evaluations via _notify_completion(), the explicit evaluate_agent() call was causing duplicate evaluations
Summary by CodeRabbit
Release Notes
Bug Fixes
Refactor