From 800bdea9bf00a232245a994cbc25026c68710c9a Mon Sep 17 00:00:00 2001 From: Scott Florentino Date: Thu, 26 Mar 2026 11:24:17 -0700 Subject: [PATCH] feat: enable LiveTrackingSpanProcessor when UIPATH_LOG_TO_FILE is set When `log_to_file` is enabled (via `UIPATH_LOG_TO_FILE=true`), also register the `LiveTrackingSpanProcessor` for span tracing. This ensures the file logging repro path matches deployed behavior where span upserts run in background threads alongside the main execution. Companion PR: UiPath/uipath-runtime-python#103 Co-Authored-By: Claude Opus 4.6 (1M context) --- packages/uipath/src/uipath/_cli/cli_eval.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/uipath/src/uipath/_cli/cli_eval.py b/packages/uipath/src/uipath/_cli/cli_eval.py index d0bdc730c..1edb2a1e2 100644 --- a/packages/uipath/src/uipath/_cli/cli_eval.py +++ b/packages/uipath/src/uipath/_cli/cli_eval.py @@ -393,7 +393,9 @@ async def execute_eval(): ) if ( - ctx.job_id or should_register_progress_reporter + ctx.job_id + or ctx.log_to_file + or should_register_progress_reporter ) and UiPathConfig.is_tracing_enabled: # Live tracking for Orchestrator or Studio Web # Uses UIPATH_TRACE_ID from environment for trace correlation