Skip to content

Conversation

@saksharthakkar
Copy link
Contributor

@saksharthakkar saksharthakkar commented Jan 23, 2026

Summary

  • Extract referenceId from OTEL span attributes in otel_span_to_uipath_span()
  • Pass extracted value to UiPathSpan constructor
  • Follows same pattern as executionType and agentVersion

referenceId (the agent's unique identifier) will be set as a span attribute by uipath-agents-python, and this PR enables the SDK to extract it and populate the top-level ReferenceId field in traces.

Companion PR

https://github.com/UiPath/uipath-agents-python/pull/145

Test plan

  • Verify referenceId extracted from span attributes
  • Verify ReferenceId appears in exported traces
  • Test with uipath-agents-python companion PR

🤖 Generated with Claude Code

Extract referenceId from OTEL span attributes and pass to UiPathSpan,
matching the pattern used for executionType and agentVersion.

This enables Python agents to populate ReferenceId in traces by setting
the referenceId attribute on spans.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@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
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@saksharthakkar saksharthakkar changed the title (wip) feat: extract referenceId from span attributes feat: extract referenceId from span attributes Jan 23, 2026
@saksharthakkar saksharthakkar marked this pull request as ready for review January 23, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

3 participants