Skip to content

feat(tracing): add coded agent info to traces#1522

Open
ionmincu wants to merge 2 commits intomainfrom
feature/add-trace-details
Open

feat(tracing): add coded agent info to traces#1522
ionmincu wants to merge 2 commits intomainfrom
feature/add-trace-details

Conversation

@ionmincu
Copy link
Copy Markdown
Contributor

@ionmincu ionmincu commented Mar 27, 2026

Description

  • Add codedAgentId, codedAgentName, and codedAgentVersion as default span attributes, read from UIPATH_PROCESS_UUID, UIPATH_PROCESS_KEY, and UIPATH_PROCESS_VERSION environment variables respectively. This enables identifying coded agents from trace data alone.
  • Add support for custom user-defined span attributes via UIPATH_TRACE_ATTR__ prefixed environment variables, following the ASP.NET Core configuration convention. For example, setting UIPATH_TRACE_ATTR__customerId=abc will inject customerId: "abc" into all span attributes.

How it works

Environment variables with the UIPATH_TRACE_ATTR__ prefix are scanned during span conversion in _SpanUtils.otel_span_to_uipath_span. The prefix is stripped and the remainder becomes the attribute key. This requires zero code changes from SDK users — just set env vars.

Development Packages

uipath

[project]
dependencies = [
  # Exact version:
  "uipath==2.10.35.dev1015225701",

  # Any version from PR
  "uipath>=2.10.35.dev1015220000,<2.10.35.dev1015230000"
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.uv.sources]
uipath = { index = "testpypi" }

uipath-platform

[project]
dependencies = [
  # Exact version:
  "uipath-platform==0.1.13.dev1015225701",

  # Any version from PR
  "uipath-platform>=0.1.13.dev1015220000,<0.1.13.dev1015230000"
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.uv.sources]
uipath-platform = { index = "testpypi" }

@ionmincu ionmincu self-assigned this Mar 27, 2026
@github-actions github-actions bot added the test:uipath-langchain Triggers tests in the uipath-langchain-python repository label Mar 27, 2026
@ionmincu ionmincu added the build:dev Create a dev build from the pr label Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build:dev Create a dev build from the pr test:uipath-langchain Triggers tests in the uipath-langchain-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant