Skip to content

Commit 800bdea

Browse files
smflorentinoclaude
andcommitted
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) <noreply@anthropic.com>
1 parent 77f40df commit 800bdea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/uipath/src/uipath/_cli/cli_eval.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,9 @@ async def execute_eval():
393393
)
394394

395395
if (
396-
ctx.job_id or should_register_progress_reporter
396+
ctx.job_id
397+
or ctx.log_to_file
398+
or should_register_progress_reporter
397399
) and UiPathConfig.is_tracing_enabled:
398400
# Live tracking for Orchestrator or Studio Web
399401
# Uses UIPATH_TRACE_ID from environment for trace correlation

0 commit comments

Comments
 (0)