Skip to content

fix(platform): use LLMOps external span in trace context headers#1613

Merged
ctiliescuuipath merged 1 commit intomainfrom
fix/trace-context-use-external-span
May 5, 2026
Merged

fix(platform): use LLMOps external span in trace context headers#1613
ctiliescuuipath merged 1 commit intomainfrom
fix/trace-context-use-external-span

Conversation

@ctiliescuuipath
Copy link
Copy Markdown
Contributor

Summary

  • Use UiPathSpanUtils.get_external_current_span() in build_trace_context_headers() so the traceparent header reflects the LLMOps span visible in the trace UI (same pattern as _base_service.py)
  • Bump uipath-platform to 0.1.45

Test plan

  • Existing test_llm_trace_context.py tests pass (11/11)
  • mypy clean
  • Verify traceparent header matches LLMOps trace UI in an end-to-end run

🤖 Generated with Claude Code

Prefer UiPathSpanUtils.get_external_current_span() over
trace.get_current_span() so the traceparent header reflects the
LLMOps span visible in the trace UI. Bump uipath-platform to 0.1.45.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-integrations labels May 5, 2026
@ctiliescuuipath ctiliescuuipath merged commit de3b91c into main May 5, 2026
85 checks passed
@ctiliescuuipath ctiliescuuipath deleted the fix/trace-context-use-external-span branch May 5, 2026 13:36
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.

2 participants