feat: add live tracking of evaluation spans #1094
Open
+373
−4
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
Adds live span tracking for evaluation runs using the upsert_span API, enabling real-time visibility into evaluation progress.
Changes
New Feature: LiveTrackingSpanProcessor
Real-time span updates: Sends span status as evaluations execute
on_start: Upserts span withRUNNINGstatus when evaluation beginson_end: Upserts span with final status (OK/ERROR) when completeSmart span filtering: Only tracks evaluation-related spans
eval,evaluator,evaluation,eval_set_run,evalOutputexecution.idattributeGraceful error handling: Catches and logs exceptions without failing evaluations
Implementation Details
LiveTrackingSpanProcessorclass insrc/uipath/_cli/_evals/_runtime.pyLlmOpsHttpExporterfor upsert_span API callsUiPathEvalRuntimeinitializationTesting
Added comprehensive test suite with 35+ test cases:
tests/cli/eval/test_live_tracking_span_processor.pyBenefits
Version
Bumped version to
2.4.16Development Package
uipath pack --nolockto get the latest dev build from this PR (requires version range).Live Tracking Video
GMT20260113-234429_Clip_Anirudh.Agnihotry.s.Clip.01_13_2026.mp4