Skip to content

[test trigger 2]#1751

Closed
radu-mocanu wants to merge 1 commit into
mainfrom
feat/rootTrace2
Closed

[test trigger 2]#1751
radu-mocanu wants to merge 1 commit into
mainfrom
feat/rootTrace2

Conversation

@radu-mocanu

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings June 24, 2026 15:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the evaluation CLI/runtime tracing by (1) adding an optional local trace export target and (2) introducing higher-level OpenTelemetry spans around evaluation-set runs, individual evaluations, and evaluator executions.

Changes:

  • Add --trace-file to uipath eval and register a JsonLinesFileExporter when provided.
  • Wrap eval-set execution, per-eval execution, and evaluator execution in new OpenTelemetry spans with custom attributes.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/uipath/_cli/cli_eval.py Adds a --trace-file CLI option and wires up JSONL trace exporting during eval.
src/uipath/_cli/_evals/_runtime.py Adds new OpenTelemetry spans around eval set runs, evaluations, and evaluator execution.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +305 to +308
span_attributes = {
"execution.id": self.execution_id,
"span_type": "eval_set_run",
}
Comment on lines +398 to +403
attributes={
"execution.id": execution_id,
"span_type": "evaluation",
"eval_item_id": eval_item.id,
"eval_item_name": eval_item.name,
}
Comment on lines +730 to +735
result = await evaluator.validate_and_evaluate_criteria(
agent_execution=agent_execution,
evaluation_criteria=evaluation_criteria,
)

return result
Comment on lines 188 to +192
if ctx.job_id:
trace_manager.add_span_exporter(LlmOpsHttpExporter())

if trace_file:
trace_manager.add_span_exporter(JsonLinesFileExporter(trace_file))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants