Skip to content

feat: enable LiveTrackingSpanProcessor when UIPATH_LOG_TO_FILE is set#1518

Open
smflorentino wants to merge 1 commit intomainfrom
feat/log-to-file-eval-support
Open

feat: enable LiveTrackingSpanProcessor when UIPATH_LOG_TO_FILE is set#1518
smflorentino wants to merge 1 commit intomainfrom
feat/log-to-file-eval-support

Conversation

@smflorentino
Copy link
Collaborator

Summary

When UIPATH_LOG_TO_FILE=true is set, also register the LiveTrackingSpanProcessor during eval. This ensures the local file-logging repro path matches deployed behavior where span upserts run in background threads alongside the main execution.

Without this, UIPATH_LOG_TO_FILE would enable file logging but not the background span threads — making it impossible to reproduce thread-related log interleaving issues locally.

Changes

  • cli_eval.py: Check ctx.log_to_file alongside ctx.job_id when deciding whether to register LiveTrackingSpanProcessor

Test plan

  • UIPATH_LOG_TO_FILE=true uv run uipath eval agent.json default.json writes to __uipath/execution.log with span processor active
  • Without the env var, behavior is unchanged

Companion PR: UiPath/uipath-runtime-python#103

🤖 Generated with Claude Code

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>
@github-actions github-actions bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant