⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

fix: incremental updates on trace view spans#39

Merged
cristipufu merged 1 commit intomainfrom
fix/trace_tree_incremental
Feb 6, 2026
Merged

fix: incremental updates on trace view spans#39
cristipufu merged 1 commit intomainfrom
fix/trace_tree_incremental

Conversation

@cristipufu
Copy link
Member

@cristipufu cristipufu commented Feb 6, 2026

Description

This pull request implements incremental updates for the trace view spans instead of rebuilding the entire tree on every trace message. The change improves UI performance by only updating affected nodes when trace messages arrive, particularly important for applications with many trace spans.

Changes:

  • Replaced full tree rebuilds on each trace message with incremental updates that only modify affected nodes
  • Added orphan tracking to handle OpenTelemetry export ordering where child spans complete before their parents
  • Introduced caching for TreeNodes, TraceMessages, and labels to optimize lookups and detect changes

Development Package

  • Add this package as a dependency in your pyproject.toml:
[project]
dependencies = [
  # Exact version:
  "uipath-dev==0.0.21.dev1000390107",

  # Any version from PR
  "uipath-dev>=0.0.21.dev1000390000,<0.0.21.dev1000400000"
]

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

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

This comment was marked as outdated.

@cristipufu cristipufu force-pushed the fix/trace_tree_incremental branch 2 times, most recently from f37e94b to e52eb19 Compare February 6, 2026 12:45
@cristipufu cristipufu force-pushed the fix/trace_tree_incremental branch from e52eb19 to f9c02ee Compare February 6, 2026 12:53
@cristipufu cristipufu merged commit b17e769 into main Feb 6, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant