Skip to content

Conversation

@AAgnihotry
Copy link
Contributor

@AAgnihotry AAgnihotry commented Jan 23, 2026

Summary

This PR removes custom instrumentation filtering for coded agents while maintaining it for low code processes (agent.json). Previously, all agents had filtering applied, which meant coded agents only exported spans with uipath.custom_instrumentation=True. Now, coded agents export all spans, providing full tracing visibility.

Changes

  • Added is_low_code parameter to LlmOpsHttpExporter to distinguish between agent types
  • Updated _should_drop_span method to:
    • Coded agents (Python files): No filtering - all spans are exported
    • Low code processes (agent.json): Whitelist filtering - only spans with uipath.custom_instrumentation=True are exported
  • Updated CLI commands (run, eval, debug) to detect agent type based on entrypoint
  • Added comprehensive tests for span filtering behavior by agent type
  • Bumped version to 2.5.35

Testing

  • All existing tests pass (1804 passed, 7 skipped)
  • Added new test class TestSpanFilteringByAgentType with comprehensive coverage:
    • Test coded agents have no filtering
    • Test low code processes apply filtering
    • Test default behavior (coded agent)
    • Test export behavior for both agent types

Impact

  • Coded agents: Will now see all spans in LLMOps traces (HTTP calls, tool invocations, etc.)
  • Low code processes: No change - filtering still applies as before
  • Backward compatible - default behavior is coded agent (no filtering)

🤖 Generated with Claude Code

Development Package

  • Use uipath pack --nolock to get the latest dev build from this PR (requires version range).
  • Add this package as a dependency in your pyproject.toml:
[project]
dependencies = [
  # Exact version:
  "uipath==2.5.35.dev1011874187",

  # Any version from PR
  "uipath>=2.5.35.dev1011870000,<2.5.35.dev1011880000"
]

[[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" }

[tool.uv]
override-dependencies = [
    "uipath>=2.5.35.dev1011870000,<2.5.35.dev1011880000",
]

Low Code
image

Coded

image

@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 Jan 23, 2026
@AAgnihotry AAgnihotry added the build:dev Create a dev build from the pr label Jan 23, 2026
@AAgnihotry AAgnihotry force-pushed the feat/custom-instrumentation-coded-agents branch from 252f178 to 356c46f Compare January 23, 2026 02:16
@smflorentino smflorentino self-requested a review January 23, 2026 02:42
@AAgnihotry AAgnihotry merged commit 2a7baa7 into main Jan 23, 2026
89 checks passed
@AAgnihotry AAgnihotry deleted the feat/custom-instrumentation-coded-agents branch January 23, 2026 02:43
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 test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants