Skip to content

fix(tracing): set Traces source to CodedAgents#1631

Merged
ionmincu merged 1 commit into
mainfrom
fix/traces-source-coded-agents_2
May 15, 2026
Merged

fix(tracing): set Traces source to CodedAgents#1631
ionmincu merged 1 commit into
mainfrom
fix/traces-source-coded-agents_2

Conversation

@ionmincu
Copy link
Copy Markdown
Contributor

Summary

  • Change source=Robots to source=CodedAgents in the /api/Traces/spans URL built by LlmOpsHttpExporter
  • Align DEFAULT_SOURCE model-side value with the query-path change
  • Update related tests
  • Bump uipath to 2.10.64 and uipath-platform to 0.1.49

Supersedes #1626 (that branch could not be force-pushed past the latest main due to repo ruleset blocking direct pushes; this PR is rebased onto current main).

Test plan

  • pytest packages/uipath/tests/tracing/test_otel_exporters.py
  • pytest packages/uipath-platform/tests/services/test_span_utils.py

🤖 Generated with Claude Code

- Change source=Robots to source=CodedAgents in /api/Traces/spans URL built by LlmOpsHttpExporter
- Align DEFAULT_SOURCE model-side value with the query-path change
- Update related tests
- Bump uipath to 2.10.64 and uipath-platform to 0.1.49

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 15, 2026 13:20
@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-integrations labels May 15, 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 the tracing span export “source” to use CodedAgents instead of Robots, aligning both the /api/Traces/spans request URL built by LlmOpsHttpExporter and the default Source value set when converting OTEL spans into UiPath spans. It also bumps package versions and updates tests to match the new expected values.

Changes:

  • Update LlmOpsHttpExporter span export URL query parameter from source=Robots to source=CodedAgents.
  • Change DEFAULT_SOURCE in span model conversion from 4 (Robots) to 10 (CodedAgents) and adjust related tests.
  • Bump package versions (uipath to 2.10.64, uipath-platform to 0.1.49) and update lockfiles accordingly.

Reviewed changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/uipath/src/uipath/tracing/_otel_exporters.py Switches the spans export URL query parameter to source=CodedAgents.
packages/uipath/tests/tracing/test_otel_exporters.py Updates expected mocked URL / assertions to match source=CodedAgents.
packages/uipath-platform/src/uipath/platform/common/_span_utils.py Updates default span Source from 4 to 10 to reflect CodedAgents.
packages/uipath-platform/tests/services/test_span_utils.py Updates test expectations and documentation strings for the new default source.
packages/uipath/pyproject.toml Bumps uipath version to 2.10.64.
packages/uipath/uv.lock Updates locked editable package version for uipath and uipath-platform.
packages/uipath-platform/pyproject.toml Bumps uipath-platform version to 0.1.49.
packages/uipath-platform/uv.lock Updates locked editable package version for uipath-platform.

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

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
50.0% Coverage on New Code (required ≥ 90%)

See analysis details on SonarQube Cloud

@ionmincu ionmincu merged commit f2cffbb into main May 15, 2026
91 of 92 checks passed
@ionmincu ionmincu deleted the fix/traces-source-coded-agents_2 branch May 15, 2026 14:00
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