Repository navigation
feat(escalation): [2/2] send the escalation span id with the Action Center task [ACTN-11909] - #1164
Open
Sahil-Wakode wants to merge 1 commit into
Open
Sahil-Wakode wants to merge 1 commit into
Sahil-Wakode wants to merge 1 commit into
Conversation
Sahil-Wakode
force-pushed
the
feat/escalation-task-parent-span-id
branch
from
October 22, 2026 10:36
cfa758a to
115462e
Compare
…enter task [ACTN-11909]
Sahil-Wakode
force-pushed
the
feat/escalation-task-parent-span-id
branch
from
October 23, 2026 10:17
115462e to
7169a59
Compare
|
There was a problem hiding this comment.
🟡 Changes recommended
The dependency requirement and lockfile still allow an SDK version that rejects the new quick-form keyword and prevents task creation.
1 open issue
What changed in this PR
This PR links Action Center task events to the agent’s Escalation trace span by forwarding its ID as ParentSpanId.
Changes:
- Pass optional task-source metadata through app and quick-form task creation.
- Populate metadata from the escalation span context.
- Add tests for span propagation and app-task behavior without a span ID.
| File | Description |
|---|---|
tests/agent/tools/test_escalation_tool.py |
Tests span metadata for app and quick-form tasks, plus the no-span case. |
src/uipath_langchain/agent/tools/escalation_tool.py |
Forwards escalation span metadata to Action Center task creation. |
Review effort: Balanced
| labels=channel.labels, | ||
| is_actionable_message_enabled=channel.properties.is_actionable_message_enabled, | ||
| actionable_message_metadata=channel.properties.actionable_message_meta_data, | ||
| task_source_metadata=task_source_metadata, |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




What
The escalation tool now sends the "Escalation" span id with the Action Center task, as
ParentSpanIdintask_source_metadata. Part 2 of 2, after UiPath/uipath-python#1948.Why
Action Center shows task events (created, assigned, completed) in the trace. Without a parent span they show at the top of the trace instead of under the "Escalation" step. The span id is already in the tool's
_span_contextasparent_span_id, set by the tool instrumentor. This PR sends it with the task. Action Center reads it in UiPath/business-apps-tasks#3734.Changes
escalation_tool.py:create_task_for_channeltakestask_source_metadataand passes it to bothcreate_quickform_asyncandcreate_async. If there is no span id, nothing extra is sent.test_escalation_tool.py: tests for app tasks, quick form tasks, and the no-span-id case.Testing
test_escalation_tool.py: 43/43 pass. The new tests fail without this change.ruffandmypypass.ParentSpanIdsent matched the exported "Escalation" span id, for app and quick form tasks.Before merging
Needs uipath-platform 0.2.42 (#1948) on PyPI. Then: require
uipath-platform>=0.2.42, bump this package's version, and updateuv.lock. Without it, quick form escalations would fail, because older versions ofcreate_quickform_asyncdon't accepttask_source_metadata.Ticket: https://uipath.atlassian.net/browse/ACTN-11909