Skip to content

fix(tracing): use agentId as span reference_id#1636

Merged
ionmincu merged 1 commit into
mainfrom
fix/traces-reference-id-from-agent-id_4
May 18, 2026
Merged

fix(tracing): use agentId as span reference_id#1636
ionmincu merged 1 commit into
mainfrom
fix/traces-reference-id-from-agent-id_4

Conversation

@ionmincu
Copy link
Copy Markdown
Contributor

Summary

  • Set UiPathSpan.reference_id from the agentId attribute (sourced from the PROJECT_KEY env var) instead of the unset referenceId attribute, so coded-agent spans carry a meaningful reference back to their agent.
  • Bump uipath-platform to 0.1.50.

Supersedes #1635 / #1634 / #1628.

Test plan

  • Verify emitted spans include ReferenceId matching the project/agent id

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 18, 2026 08:53
@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-integrations labels May 18, 2026
Copy link
Copy Markdown

Copilot AI left a comment

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 updates tracing conversion so UiPath spans use agentId as the top-level ReferenceId, aligning emitted coded-agent spans with the project/agent identifier. It also bumps the uipath-platform package version to 0.1.50.

Changes:

  • Maps UiPathSpan.reference_id from the agentId attribute.
  • Bumps uipath-platform version metadata and lockfile entries.

Reviewed changes

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

File Description
packages/uipath-platform/src/uipath/platform/common/_span_utils.py Updates reference ID extraction during OpenTelemetry span conversion.
packages/uipath-platform/pyproject.toml Bumps uipath-platform project version to 0.1.50.
packages/uipath-platform/uv.lock Updates locked editable package version for uipath-platform.
packages/uipath/uv.lock Updates top-level package lockfile reference to uipath-platform 0.1.50.

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

execution_type = attributes_dict.get("executionType")
agent_version = attributes_dict.get("agentVersion")
reference_id = attributes_dict.get("referenceId")
reference_id = attributes_dict.get("agentId")
execution_type = attributes_dict.get("executionType")
agent_version = attributes_dict.get("agentVersion")
reference_id = attributes_dict.get("referenceId")
reference_id = attributes_dict.get("agentId")
@sonarqubecloud
Copy link
Copy Markdown

@ionmincu ionmincu merged commit 82ed987 into main May 18, 2026
92 checks passed
@ionmincu ionmincu deleted the fix/traces-reference-id-from-agent-id_4 branch May 18, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants